Question discussion

How many bits are required to represent any decimal number in the range from 0 to 2n–1 in base 2?

5180Medium DSSSB TGT Computer Science 0 replies 0 views
0
How many bits are required to represent any decimal number in the range from 0 to 2n–1 in base 2?
  • An + 1
  • Bn
  • Cn – 1
  • D2n – 1
Correct answer: B

Explanation

With n bits we can represent 2ⁿ distinct values, i.e. decimal numbers 0 to 2ⁿ − 1.

Discussion 0

Nobody has replied yet. Start the discussion!