Explore topic-wise MCQs in Data Structure.

This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Data Structure knowledge and support exam preparation. Choose a topic below to get started.

1.

Given, arr = {1,3,5,6,7,9,14,15,17,19} key = 17 and delta = {5,3,1,0}
How many key comparisons are made?(exclude the comparison used to decide the left or right sub array)

A. 4
B. 3
C. 5
D. 6
Answer» C. 5
2.

In which of the cases uniform binary search fails compared to binary search?

A. A table lookup is generally faster than an addition and a shift
B. Many searches will be performed on the same array
C. Many searches will be performed on several arrays of the same length
D. Complexity of code
Answer» E.