Quiz Space

Programming, Data Structures and Algorithms using Python · Quiz 1 · 13 Jul 2025 · May 2025 term

Question 3: When using the binary search algorithm on a sorted list, …

Question 3

+3 marksOne correct option

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?

  1. A

    It doubles

  2. B

    It remains the same

  3. C

    It becomes half

  4. D

    It increases by 1

Show answer

Correct answer

  • D

    It increases by 1

Question 3 of 16 in the IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) Quiz 1 paper sat on 13 Jul 2025, in the May 2025 term (IIT M DIPLOMA AN EXAM QDD2 13 July 2025). It carries 3 marks.

More questions from this paper

  1. Q1Figure question
  2. Q2Figure question
  3. Q4Figure question
  4. Q5Figure question
  5. Q6Figure question
  6. Q7Figure question
  7. Q8Figure question
  8. Q9Figure question
  9. Q10Figure question
  10. Q11Figure question
  11. Q12Figure question
  12. Q13Figure question
  13. Q14Figure question
  14. Q15Figure question
  15. Q16Figure question