Question:

One byte can be used to encode any integer between 0 and ------.

Show Hint

Remember, a byte has 8 bits, so it can represent values from 0 to \(2^8 - 1\), which is 0 to 255.
  • 16
  • 128
  • 256
  • 255
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

A byte consists of 8 bits. Each bit can either be 0 or 1, so the total number of different combinations possible is: \[ 2^8 = 256 \] These 256 values range from 0 to 255, hence the integer encoded by a byte can be between 0 and 255.
Was this answer helpful?
0
0