What is the largest unsigned decimal number that can be stored in one byte?
- A.127
- B.128
- C.255
- D.256
Correct answer
Explanation
The correct answer is C, 255. One byte holds eight bits, and each bit can be either 0 or 1, so the number of different patterns is 2 raised to the power 8, that is 256. Those 256 patterns represent the numbers from 0 to 255 when the byte is unsigned, because counting starts at zero. The largest pattern, 11111111, adds up to 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1, which equals 255. Option A is wrong because 127 is the largest positive value of a signed byte, where the leftmost bit is kept as the sign bit and only seven bits remain for the value. Option B is wrong because 128 is the place value of the leftmost bit alone. Option D is wrong because 256 is the count of patterns, not the largest value, a distinction examiners test often.
Read the full article: Number Systems and Data Representation in Computers
Practice Questions
View allWhat is the hexadecimal equivalent of this binary number (1110)2?
- A.F
- B.B
- C.A
- D.E
Show answer
Hexadecimal has base 16, and because 2 raised to the power 4 equals 16, exactly four binary bits make one hexadecimal digit.
Read the full explanation →The binary equivalent of octal number 627 is:
- A.111010110
- B.110010110
- C.110010111
- D.011010111
Show answer
Octal has base 8, and because 2 raised to the power 3 equals 8, every octal digit expands into exactly three binary bits.
Read the full explanation →(1101 0001)2 binary number is same as which octal number?
- A.(321)8
- B.(123)8
- C.(641)8
- D.(146)8
Show answer
To turn a binary number into octal, group the bits in threes starting from the rightmost bit, adding leading zeros to complete the last group, because three bits cover the eight octal digits.
Read the full explanation →The difference between the two binary numbers 10010000 and 1111001 is:
- A.11101
- B.11011
- C.10111
- D.10011
Show answer
The safest way to handle a binary subtraction in an examination is to convert both numbers to decimal, subtract, and convert the answer back.
Read the full explanation →How many bits make one nibble?
- A.2
- B.4
- C.8
- D.16
Show answer
A bit, short for binary digit, is a single 0 or 1 and is the smallest unit of data a computer handles.
Read the full explanation →