Gce Model Questions Vol1 2024 Computer Studies Question 33

Practice objective / multiple choice question 33 from the 2024 Gce Model Questions Vol1 Computer Studies examination.

Gce Model Questions Vol1 2024 Computer Studies Objective / Multiple Choice Hard Difficulty
Question 33 GCE_MODEL_QUESTIONS_VOL1 • 2024 • COMPUTER_STUDIES • objective

A table Employees(EmpID, DeptID, Salary, HireDate) contains 10,000 rows. Indexes exist on DeptID (clustered) and Salary (non‑clustered). The query is: SELECT DeptID, AVG(Salary) FROM Employees WHERE HireDate > '2020-01-01' GROUP BY DeptID HAVING AVG(Salary) > 50000 ORDER BY DeptID; Assuming 30 % of the rows satisfy the HireDate condition and there are 5 departments with roughly equal numbers of rows, estimate which index(es) the optimiser is likely to use and state how many rows will be examined during execution.

Answer Options

Correct Answer A. The optimiser will perform a full table scan of all 10,000 rows; the DeptID index may be used for grouping but does not reduce the rows read.
B. The optimiser will use the non‑clustered Salary index to filter rows, examining approximately 2,000 rows.
C. The optimiser will use the clustered DeptID index to locate the 3,000 qualifying rows, scanning only those rows.
D. The optimiser will perform an index seek on the HireDate column, reading about 3,000 rows.
Correct Answer
A
Correct Option:
The optimiser will perform a full table scan of all 10,000 rows; the DeptID index may be used for grouping but does not reduce the rows read.

About This Question

This is Gce Model Questions Vol1 2024 Computer Studies Question 33. It is one of the objective questions from the 2024 Gce Model Questions Vol1 Computer Studies examination.

Difficulty level: Hard .

Master the Exam!

You've seen a preview, but there are thousands more questions plus AI tutor to break down complex solutions.

Unlock Full Access Available for Android & Windows
Chat with Support