Number System · Digital Logic
66 questions · asked in 26 of 27 years (2000–2026)
MCQ 49 · MSQ 6 · NAT 111-mark 55 · 2-mark 11
2000Questions per year2026
Questions 16–20 of 66
Consider the following representation of a number in IEEE 754 single-precision floating point format with a bias of 127.
S:1
E:10000001
F:11110000000000000000000
Here, S,E and F denote the sign, exponent, and fraction components of the floating point representation.
The decimal value corresponding to the above representation (rounded to 2 decimal places) is ____________.
S:1
E:10000001
F:11110000000000000000000
Here, S,E and F denote the sign, exponent, and fraction components of the floating point representation.
The decimal value corresponding to the above representation (rounded to 2 decimal places) is ____________.
Answer: -7.75
Exponent: 129 127 = 2.
Mantissa: 1.1111 = 1 + 0.5 + 0.25 + 0.125 + 0.0625 = 1.9375.
The sign bit is 1, so the number is negative.
Final value:
Answer: -7.75
Mantissa: 1.1111 = 1 + 0.5 + 0.25 + 0.125 + 0.0625 = 1.9375.
The sign bit is 1, so the number is negative.
Final value:
Answer: -7.75
The format of the single-precision floating point representation of a real number as per the IEEE 754 standard is as follows:
Which one of the following choices is correct with respect to the smallest normalized positive number represented using the standard?
Which one of the following choices is correct with respect to the smallest normalized positive number represented using the standard?
Answer: (C)
A normalized number must have an exponent field from 1 to 254. The value 0 is kept for zero and denormals. So the smallest normalized positive number has exponent 00000001 and a mantissa of all 0s: .
Answer: exponent = 00000001 and mantissa = 00
Answer: exponent = 00000001 and mantissa = 00
If and are two decimal digits and , the decimal value of is ___________
Answer: 3
Convert the binary fraction to decimal:
So 0.8xy5 = 0.8125 x = 1, y = 2 Sum of digits: x + y = 3
Answer: 3
So 0.8xy5 = 0.8125 x = 1, y = 2 Sum of digits: x + y = 3
Answer: 3
If the numerical value of a 2-byte unsigned integer on a little endian computer is 255 more than that on a big endian computer, which of the following choices represent(s) the unsigned integer on a little endian computer?
One or more options are correct.
Answer: (A), (D)
Take the little-endian value as , where is the high byte and is the low byte. The same two bytes in memory, read as big-endian, give .
The difference is . Setting it equal to gives .
- 0x6665: , , so . True
- 0x0100: , , so . True
- 0x0001: , , so . False
- 0x4243: , , so . False
Answer: (A), (D)
The difference is . Setting it equal to gives .
- 0x6665: , , so . True
- 0x0100: , , so . True
- 0x0001: , , so . False
- 0x4243: , , so . False
Answer: (A), (D)
Consider three registers R1, R2, and R3 that store numbers in IEEE-754 single precision floating point format. Assume that R1 and R2 contain the values (in hexadecimal notation) 0x42200000 and 0xC1200000, respectively.
If , what is the value stored in R3?
If , what is the value stored in R3?
Answer: (B)
IEEE-754 single precision has 1 sign bit, 8 exponent bits (bias 127) and 23 mantissa bits. The value is .
. Split as . The sign is , the exponent is and the mantissa is . So .
. Split as . The sign is , the exponent is and the mantissa is . So .
. The sign bit is , the stored exponent is and the mantissa bits are all .
Bits: .
Answer: (B)
. Split as . The sign is , the exponent is and the mantissa is . So .
. Split as . The sign is , the exponent is and the mantissa is . So .
. The sign bit is , the stored exponent is and the mantissa bits are all .
Bits: .
Answer: (B)
Keep practising