Math Fundamentals18 sections · 814 units
Open in Course

Quiz: Bitwise and Boolean

Knowledge check

Check Your Understanding

Why do we need the condition n > 0 in the power of two check?

  1. A.Because negative numbers can be powers of two
  2. B.Because zero and negative numbers are not powers of two
  3. C.To prevent overflow errors
  4. D.To make the code run faster
Start the roadmap to answer the quizzes and solve the challenges