logo

Question detail

Using the simplified base-2 interpretation of logarithmic growth, how does the number of levels represented by O(log n) change when n increases from 8 to 16?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Searching algorithms

Exam-style question

Try this first

Using the simplified base-2 interpretation of logarithmic growth, how does the number of levels represented by O(log n) change when n increases from 8 to 16?.

  1. A.It decreases by one level
  2. B.It stays the same
  3. C.It increases by one level
  4. D.It increases by eight levels

Model answer

What a good answer should say

  • C.
  • It increases by one level

Explanation

Why this works

log₂(8) is 3 and log₂(16) is 4, so the logarithmic measure increases by one when the number of items doubles from 8 to 16.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.