1. Home
  2. Engineering
  3. Computer Engineering
  4. The worst-case time complexity of binary search on n…

Added 28 Nov 2026

The worst-case time complexity of binary search on n elements is:

  1. O(log n) Correct answer
  2. O(n)
  3. O(1)
  4. O(n²)

Correct answer

A. O(log n)

MCQSEXAM

Explanation

The search space halves each step.

Reference

Asked in: Engineering Computer Engineering Practice

https://en.wikipedia.org/wiki/Data_structure

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Engineering MCQs

Practise all Computer Engineering MCQs

Similar MCQs