Placement AptitudeHardInfosys SP · TCS NQT Digital

A positive integer has exactly 10 digits when written in base 2. How many digits does it have in base 8?

  1. A. 3
  2. B. 3 or 4
  3. C. 5
  4. D. 4

Correct answer: D. 4

A 10-digit binary number lies between 2⁹ = 512 and 2¹⁰ − 1 = 1023. Since 8³ = 512 and 8⁴ = 4096, every such number has exactly 4 digits in base 8 (grouping 10 bits in threes gives 4 groups).

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic