Ch 38: Query Processing & Optimization

5 Questions5 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 – 5 of 5 Questions
Page 1 of 1
Q1
❓ MCQ📘 CS403📑 Lec 38🏷️ 38.2. Clustered vs Un-clustered IndexesMedium🔁⭐💡🌟📄🎓VU🏛️VU
Relational databases use indexes to speed up data retrieval. Which of the following lists the correct classification categories for database indexes based on physical record ordering and index density?
💻 text Snippet
-- Index Classifications:
-- Clustered (Determines physical data block layout on disk)
-- Dense (Index entry for every key value)
-- Sparse (Index entry for only some key values, e.g. per page)
  1. A.Clustered vs. Un-clustered Indexes, and Dense vs. Sparse Indexes
  2. B.Sequential vs. Hashed Indexes, and Primary vs. Alternate Key Indexes
  3. C.DML vs. DDL Indexes, and Single vs. Composite Key Indexes
  4. D.Volatile vs. Non-volatile Indexes, and Relational vs. Binary Indexes
Q2
❓ MCQ📘 CS403📑 Lec 38🏷️ 38.2. Clustered vs Un-clustered IndexesEasy🔁⭐💡📄🎓VU🏛️VU
What is the maximum number of clustered indexes that can be created and maintained on a single relational database table?
💻 sql Snippet
-- A primary key constraint automatically creates a clustered index by default:
ALTER TABLE STUDENT ADD CONSTRAINT PK_STUDENT PRIMARY KEY (stId);
  1. A.2
  2. B.3
  3. C.5
  4. D.1
Q3
❓ MCQ📘 CS403📑 Lec 38🏷️ 38.2. Clustered vs Un-clustered IndexesHard🔁⭐💡📄🎓VU🏛️VU
In relational database indexing theory, which type of physical index structure determines and physically organizes the actual storage order of data records (rows) on the hard disk platters?
💻 sql Snippet
-- In SQL Server, a PRIMARY KEY constraint automatically establishes:
-- a CLUSTERED INDEX on that column.
  1. A.Secondary index
  2. B.Clustered index
  3. C.Dense index
  4. D.Unclustered index
Q4
🧠 Long Problem📘 CS403📑 Lec 38🏷️ 38.2. Clustered vs Un-clustered IndexesHard🔁⭐💡🌟📄🎓VU🏛️VU
Perform a detailed structural and functional comparison of the following indexing classifications: 1. Clustered vs. Un-clustered Indexes 2. Single Key vs. Composite Indexes
💻 sql Snippet
CREATE CLUSTERED INDEX idx_stud_id ON STUDENT (stId);
CREATE NONCLUSTERED INDEX idx_stud_name ON STUDENT (stName);
Q5
📝 Short Q📘 CS403📑 Lec 38🏷️ 38.2. Clustered vs Un-clustered IndexesMedium🔁⭐💡🌟📄🎓VU🏛️VU
What is the operational difference between a Primary Key and a Unique Key with reference to Clustered and Non-Clustered indexes?
💻 sql Snippet
-- Primary Key automatically creates Clustered Index:
ALTER TABLE Persons ADD CONSTRAINT PK_ID PRIMARY KEY (PersonID);

-- Unique Key automatically creates Non-Clustered Index:
ALTER TABLE Persons ADD CONSTRAINT UQ_Email UNIQUE (Email);