Binary Numbers MCQ Practice

Question 1 of 10

An unsigned integer is stored using exactly 8 bits. Which decimal value does the bit pattern 11001001 represent?

Place value (powers of 2) 128 64 32 16 8 4 2 1
Bit 1 1 0 0 1 0 0 1
  1. A. 201
  2. B. 217
  3. C. 137
  4. D. 153

Question 2 of 10

Convert the decimal number 54 to an 8-bit binary representation. Which pattern is correct?

  1. A. 01010110
  2. B. 00110110
  3. C. 00111010
  4. D. 00110101

Question 3 of 10

Four unsigned 6-bit patterns are listed. Which list shows them in increasing decimal order?

Label 6-bit pattern
P 010011
Q 001110
R 100001
S 011010
  1. A. Q, S, P, R
  2. B. Q, P, R, S
  3. C. Q, P, S, R
  4. D. P, Q, S, R

Question 4 of 10

A sensor stores each sample as an unsigned 4-bit integer. The true analog reading is 17. After the reading is forced into 4 bits, which statement is accurate?

  1. A. Round-off occurs only for fractional values, so 17 is stored without any issue.
  2. B. The stored value becomes 1 because only the least significant bit is kept.
  3. C. The stored value is 17 because 4 bits can represent any positive integer.
  4. D. Overflow occurs: the largest representable value is 15 (1111), so 17 cannot be stored exactly as an unsigned 4-bit integer.

Question 5 of 10

A fixed-point format uses 8 bits total: 5 bits for the integer part and 3 bits for the fractional part. Which decimal value can be represented exactly?

Fractional place 1/2 1/4 1/8
Bit weight 0.5 0.25 0.125
  1. A. 3.625
  2. B. 4.05
  3. C. 1.3
  4. D. 2.1

Question 6 of 10

The bit sequence 01000001 is interpreted in two different ways. Which pair of interpretations can both be correct depending on context?

  1. A. Decimal 64 and an empty string.
  2. B. Decimal 65 as an unsigned 8-bit integer, or the character A in a common text encoding that maps 65 to A.
  3. C. Decimal 65 only; bits cannot represent characters.
  4. D. Decimal 16 and the character Z.

Question 7 of 10

An unsigned 8-bit register holds 11111101. The program adds the unsigned 8-bit value 00000110 and stores the sum back in the same 8-bit register. What value is stored, and why?

  1. A. 255, because the register saturates at the maximum unsigned 8-bit value.
  2. B. 259, because 253 + 6 = 259 and 8 bits can hold any sum.
  3. C. 3, because 253 + 6 = 259, which overflows 8 bits; 259 - 256 = 3 is what remains in 8 bits.
  4. D. 247, because each bit flips during addition.

Question 8 of 10

A coach samples a sprinter's position every 0.5 seconds and stores each sample as a digital number. Which statement best describes this process?

  1. A. Sampling converts each position into a lossless exact copy of the continuous race with no approximation.
  2. B. Sampling is only used for text compression and does not apply to motion data.
  3. C. Because samples are numbers, they cannot be considered an abstraction of the race.
  4. D. The samples replace the continuous path with discrete measurements, approximating analog position data digitally.

Question 9 of 10

Compare the unsigned binary numbers 101101 and 110010 (both shown without leading zeros). Which statement is true?

Expression Expanded place values
101101 32+8+4+1 = 45
110010 32+16+2 = 50
  1. A. 110010 is greater because 50 > 45.
  2. B. The two values are equal.
  3. C. 101101 is greater because its rightmost bit is 1.
  4. D. 101101 is greater because it has more 1 bits.

Question 10 of 10

A temperature probe reports values using a fixed 8-bit unsigned integer. Which decimal value requires round-off (approximation) rather than an exact integer encoding in those 8 bits?

  1. A. 0
  2. B. 72.5
  3. C. 255
  4. D. 200