Ch 37: Hashing Techniques in Databases

9 Questions9 MCQs0 Short Questions0 Long Questions
🎯 Exam Practice Papers
SEMESTER PASS

CS403 - Database Management Systems Examination Practice

Timed practice exam simulation for CS403 - Database Management Systems.

📘 VU MID TERM EXAMLectures 1 to 22
⏱️ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

📝30 MCQs
⏱️60 Minutes
📗 VU FINAL TERM EXAMLectures 23 to 45
⏱️ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

📝45 MCQs
⏱️90 Minutes
Showing 1 – 9 of 9 Questions
Page 1 of 1
Q1
❓ MCQ📘 CS403📑 Lec 37🏷️ 37.2. Log File and Recovery ConceptsMedium🔁⭐💡📄🎓VU🏛️VU
While recovering database data after a sudden system crash or failure, which of the following files does the DBMS recovery manager examine first to identify transaction states?
💻 text Snippet
-- Crash Recovery Scan Order:
-- Checkpoint -> Read Log Sequentially -> UNDO Active -> REDO Committed
  1. A.A system configuration file
  2. B.Log file
  3. C.Data dictionary
  4. D.Metadata description file
Q2
❓ MCQ📘 CS403📑 Lec 37🏷️ 37.2. Log File and Recovery ConceptsHard🔁⭐💡🌟📄🎓VU🏛️VU
In database crash recovery, the recovery manager maintains several files to reconstruct the database state after a sudden failure. Match the following recovery structures with their correct definitions: 1. Log File - A. A sequential file recording all database updates, transaction starts, commits, and rollbacks. 2. Checkpoint - B. A periodic reference point in the log file showing that all modified cache buffers are written to the disk. 3. Active Transactions - C. A list of transactions that were currently running and uncommitted when the system crashed.
💻 text Snippet
-- Log Record entry:
-- <T1, Var_X, Old_Value, New_Value>
  1. A.1-A, 2-B, 3-C
  2. B.1-B, 2-A, 3-C
  3. C.1-C, 2-B, 3-A
  4. D.1-A, 2-C, 3-B
Q3
❓ MCQ📘 CS403📑 Lec 37🏷️ 37.2. Log File and Recovery ConceptsMedium🔁⭐💡📄🎓VU🏛️VU
While recovering database data after a sudden system failure or physical crash, which of the following files does the DBMS recovery manager examine first?
💻 text Snippet
-- Recovery Manager sequence:
-- Checkpoint -> Scan Log Sequentially -> UNDO Active -> REDO Committed
  1. A.A system file
  2. B.Log file
  3. C.Data dictionary
  4. D.Metadata
Q4
🧠 Long Problem📘 CS403📑 Lec 37🏷️ 37.2. Index ClassificationsHard🔁⭐💡🌟📄🎓VU🏛️VU
Explain the main components of a database Index and compare the architectural features and query limitations of the two main index types: Ordered Indexes and Hash Indexes.
💻 text Snippet
-- Creating ordered and hashed access paths on search keys.
Q5
📝 Short Q📘 CS403📑 Lec 37🏷️ 37.4. Indexes in SQLEasy🔁⭐💡📄🎓VU🏛️VU
Write a standard SQL DDL statement to create a simple, non-unique index named 'Personal_Index' on the 'LastName' field of the 'person' table.
💻 sql Snippet
CREATE INDEX Personal_Index ON person (LastName);
Q6
📝 Short Q📘 CS403📑 Lec 37🏷️ 37.4. Indexes in SQLEasy🔁⭐💡📄🎓VU🏛️VU
Write a SQL DDL statement to create a unique index named 'IndexNum' on the 'CustName' column of a database table named 'Customer'.
💻 sql Snippet
CREATE UNIQUE INDEX IndexNum ON Customer (CustName);
Q7
❓ MCQ📘 CS403📑 Lec 37🏷️ 37.2. Log File and Recovery ConceptsMedium🔁⭐💡📄🎓VU🏛️VU
During a database crash recovery process, which of the following files does the DBMS recovery manager examine first to identify uncommitted transactions that must be undone and committed transactions that must be redone?
💻 text Snippet
-- Sequential recovery log scanning:
-- Checkpoint -> Scan Log -> Undo Active -> Redo Committed
  1. A.A system configuration file
  2. B.Log file
  3. C.Data dictionary (System Catalog)
  4. D.Metadata description file
Q8
❓ MCQ📘 CS403📑 Lec 37🏷️ 37.4. Indexes in SQLMedium🔁⭐💡📄🎓VU🏛️VU
Under physical database index structures, which of the following statements is NOT true regarding indexes?
💻 sql Snippet
-- Creating a composite index on multiple attributes:
CREATE INDEX idx_emp_dept ON EMPLOYEE (DeptID, Salary);
  1. A.An index can be defined even when there is no data populated in the table.
  2. B.An index supports fast range selections using operators like BETWEEN.
  3. C.An index is created using the standard DDL 'CREATE INDEX' statement.
  4. D.An index cannot be created on composite attributes.
Q9
❓ MCQ📘 CS403📑 Lec 37🏷️ 37.4. Indexes in SQLEasy🔁⭐💡📄🎓VU🏛️VU
Which of the following statement is strictly true regarding the creation and existence of search indexes in a relational database?
💻 sql Snippet
CREATE INDEX idx_student_gpa ON STUDENT (cgpa DESC);
  1. A.An index can only be created for a single designated table in the entire database.
  2. B.An index can maximum be created for up to two tables in a database.
  3. C.An index must be created for every single table in the database to maintain logical integrity.
  4. D.An index can be created for any table in the database to optimize execution performance.