Quiz: Set Bits

Test your understanding

Check Your Understanding

How many set bits does the number n=2k1n = 2^k - 1 have?

  1. A.11 bit
  2. B.kk bits (all ones from bit 00 to bit k1k-1)
  3. C.k1k-1 bits
  4. D.log2(k)\log_2(k) bits
Start the roadmap to answer the quizzes and solve the challenges