logo

AQA A-Level Computer Science practice

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 first, then check the answer and practise the same topic again.

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

Answer and explanation

Concise answer

It increases by one level

Why this is correct

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.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions