Suppose you are searching student data using student number as the key. Which of the following arrangement of the student data is suited for binary…

Suppose you are searching student data using student number as the key. Which of the following arrangement of the student data is suited for binary search?

  1. a) Student data are arranged in the positions indicated by the student numbers' hash values.
  2. b) Student data are arranged randomly irrespective of the student numbers.
  3. c) Student data are arranged in ascending order of student numbers.
  4. d) Student data are arranged in the order of the cell addresses of the student numbers' locations.

From the Combined Bank Assistant Programmer (CSE) March 2021 – Preliminary exam, question 10 of 86.

More from this paper