wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

One byte can be used to encode any integer between 'O' and inclusive

A
16
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
256
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
128
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
255
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
E
None of the above
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is D 255

One byte can be used to encode any integer between 'O' and inclusive is a 255

Sometimes you hear a group of four bits called a nibble. The largest number you can represent with 8 bits is 11111111, or 255 in decimal notation. Since 00000000 is the smallest, you can represent 256 things with a byte. (Remember, a bite is just a pattern.

A bit is a binary digit. So a byte can hold 2 (binary) ^ 8 numbers ranging from 0 to 2^8-1 = 255. It's the same as asking why a 3 digit decimal number can represent values 0 through 999, which is answered in the same manner (10^3 - 1). Originally bytes weren't always 8 bits though.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Frequency Distribution
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon