cs2002_2025T2_Q1_AN.pdf
Database Management System(DBMS) · Quiz 1 · May 2025
← Course papers · Start practice / exam
Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.
Question 47 MCQ · 3.0 marks
[[IMAGE:2b9c95be5032bfd6_2_0]]

[[IMAGE:2b9c95be5032bfd6_2_1]]

[[IMAGE:2b9c95be5032bfd6_2_2]]

[[IMAGE:2b9c95be5032bfd6_2_3]]

[[IMAGE:2b9c95be5032bfd6_2_4]]

A published solution is not available for this question yet.
Question 48 MCQ · 3.0 marks
[[IMAGE:2b9c95be5032bfd6_3_5]]

[[IMAGE:2b9c95be5032bfd6_3_6]]

[[IMAGE:2b9c95be5032bfd6_3_7]]

[[IMAGE:2b9c95be5032bfd6_3_8]]

[[IMAGE:2b9c95be5032bfd6_3_9]]

A published solution is not available for this question yet.
Question 49 MCQ · 3.0 marks
When using the **binary search algorithm** on a sorted list, consider the **maximum number of**
**comparisons** it might take in the worst-case scenario to find an item or confirm it's absent.
If the **total number of items in this sorted list is doubled**, how does this **maximum number of**
**comparisons** change?
It doubles
It remains the same
It becomes half
It increases by 1
A published solution is not available for this question yet.
Question 50 MCQ · 3.0 marks
[[IMAGE:2b9c95be5032bfd6_4_10]]

When the input array is already sorted; the algorithm still performs redundant
checks.
When the input array is sorted in reverse (descending) order; each element
needs to be compared against and shifted past all previously sorted elements.
When the input array contains many duplicate elements; handling duplicates
requires extra comparisons.
When the input array elements are randomly distributed; the lack of order
maximizes the average number of shifts required.
A published solution is not available for this question yet.
Question 51 MCQ · 3.0 marks
[[IMAGE:2b9c95be5032bfd6_5_11]]

[[IMAGE:2b9c95be5032bfd6_5_12]]

[[IMAGE:2b9c95be5032bfd6_5_13]]

[[IMAGE:2b9c95be5032bfd6_5_14]]

[[IMAGE:2b9c95be5032bfd6_5_15]]

A published solution is not available for this question yet.
Question 52 MCQ · 3.0 marks
[[IMAGE:2b9c95be5032bfd6_5_16]]

Choosing a median value as the pivot for each recursive call.
Choosing either the smallest or the largest element as the pivot at each
recursive call.
Choosing either the first or the last position element as the pivot at each
recursive call.
Partitioning the array into two roughly equal halves at each recursive call.
A published solution is not available for this question yet.
Question 53 MCQ · 3.0 marks
[[IMAGE:2b9c95be5032bfd6_6_17]]

[[IMAGE:2b9c95be5032bfd6_6_18]]

[[IMAGE:2b9c95be5032bfd6_6_19]]

[[IMAGE:2b9c95be5032bfd6_6_20]]

[[IMAGE:2b9c95be5032bfd6_6_21]]

A published solution is not available for this question yet.
Question 54 MCQ · 3.0 marks
[[IMAGE:2b9c95be5032bfd6_7_22]]

[[IMAGE:2b9c95be5032bfd6_7_23]]

[[IMAGE:2b9c95be5032bfd6_7_24]]

[[IMAGE:2b9c95be5032bfd6_7_25]]

[[IMAGE:2b9c95be5032bfd6_7_26]]

A published solution is not available for this question yet.
Question 55 MCQ · 3.0 marks
[[IMAGE:2b9c95be5032bfd6_7_27]]

3
4
6
7
A published solution is not available for this question yet.
Question 56 MSQ · 3.0 marks
[[IMAGE:2b9c95be5032bfd6_8_28]]

[[IMAGE:2b9c95be5032bfd6_8_29]]

[[IMAGE:2b9c95be5032bfd6_8_30]]

[[IMAGE:2b9c95be5032bfd6_8_31]]

[[IMAGE:2b9c95be5032bfd6_8_32]]

A published solution is not available for this question yet.
Question 57 MSQ · 3.0 marks
[[IMAGE:2b9c95be5032bfd6_9_33]]

[[IMAGE:2b9c95be5032bfd6_9_34]]

[[IMAGE:2b9c95be5032bfd6_9_35]]

[[IMAGE:2b9c95be5032bfd6_9_36]]

[[IMAGE:2b9c95be5032bfd6_9_37]]

[[IMAGE:2b9c95be5032bfd6_9_38]]

A published solution is not available for this question yet.
Question 58 MSQ · 4.0 marks
[[IMAGE:2b9c95be5032bfd6_10_39]]

(1,4)
(2,4)
(3,4)
(3,5)
(4,5)
(1, 5)
A published solution is not available for this question yet.
Question 59 NAT · 3.0 marks
[[IMAGE:2b9c95be5032bfd6_11_40]]

A published solution is not available for this question yet.
Question 60 NAT · 3.0 marks
[[IMAGE:2b9c95be5032bfd6_11_41]]

A published solution is not available for this question yet.
Question 61 NAT · 3.0 marks
[[IMAGE:2b9c95be5032bfd6_12_42]]

A published solution is not available for this question yet.
Question 62 NAT · 4.0 marks
[[IMAGE:2b9c95be5032bfd6_13_43]]

A published solution is not available for this question yet.