1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 11
  4. The time complexity of binary search is:

Added 16 Nov 2026

The time complexity of binary search is:

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

Correct answer

B. O(log n)

10 views

MCQSEXAM

Explanation

Binary search halves the search space each time, so it runs in O(log n) time. Linear search is O(n).

Reference

Asked in: Matric,FBISE

Preparing for an exam?

Doubts & discussion

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

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Science FBISE Class 11 MCQs

Practise all Computer Science FBISE Class 11 MCQs

Similar MCQs