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 41–45 of 66
In the IEEE floating point representation the hexadecimal value 0x00000000 corresponds to
Answer: (D)
Write in bits: all 32 bits are . So the sign bit is , the 8 exponent bits are all and the 23 mantissa bits are all .
In IEEE-754 single precision, an exponent field of all 0s is reserved for special values, and a normalized number never uses it. A normalized number has exponent field from to and an implied leading , so it can never be zero. The special values are:
- exponent all 0s, mantissa all 0s: zero ( if the sign bit is , if it is )
- exponent all 0s, mantissa non-zero: a denormalized number
- exponent all 1s, mantissa all 0s: or by the sign bit
- exponent all 1s, mantissa non-zero: NaN
So is the special value .
(A) and (B) are wrong because normalized values are not stored with an all-0 exponent field; the smallest normalized number, , is . (C) is wrong because zero is not a normalized value.
Answer: (D)
In IEEE-754 single precision, an exponent field of all 0s is reserved for special values, and a normalized number never uses it. A normalized number has exponent field from to and an implied leading , so it can never be zero. The special values are:
- exponent all 0s, mantissa all 0s: zero ( if the sign bit is , if it is )
- exponent all 0s, mantissa non-zero: a denormalized number
- exponent all 1s, mantissa all 0s: or by the sign bit
- exponent all 1s, mantissa non-zero: NaN
So is the special value .
(A) and (B) are wrong because normalized values are not stored with an all-0 exponent field; the smallest normalized number, , is . (C) is wrong because zero is not a normalized value.
Answer: (D)
Answer: (A)
Binary subtraction works the same way as decimal subtraction: and the borrow is .
Correct Answer:
When multiplicand Y is multiplied by multiplier using bit-pair recoding in Booth's algorithm, partial products are generated according to the following table.
The partial products for rows 5 and 8 are
The partial products for rows 5 and 8 are
Answer: (C)
Bit-pair recoding gives each bit pair a multiplier digit . The partial product is times Y.
Row 5, : , so the partial product is -2Y.
Row 8, : , so the partial product is 0.
The formula also gives the other rows: 001 gives +1, 010 gives +1, 011 gives +2, 101 gives -1, 110 gives -1, which agree with the table.
So rows 5 and 8 are -2Y and 0.
Answer: (C)
Row 5, : , so the partial product is -2Y.
Row 8, : , so the partial product is 0.
The formula also gives the other rows: 001 gives +1, 010 gives +1, 011 gives +2, 101 gives -1, 110 gives -1, which agree with the table.
So rows 5 and 8 are -2Y and 0.
Answer: (C)
The addition of 4-bit, two's complement, binary numbers 1101 and 0100 results in
Answer: (C)
Read both numbers in 4-bit 2's complement: and .
Add: . Keep 4 bits: the sum is (this is ), and the carry out of the top bit is 1.
Overflow happens only when both operands have the same sign bit and the result has the opposite sign bit. Here the operand sign bits are 1 and 0, which differ, so there is no overflow. A carry out alone does not mean overflow.
So the result is 0001 with no overflow. Options (A) and (D) report an overflow, and options (B) and (D) give , not .
Answer: (C)
Add: . Keep 4 bits: the sum is (this is ), and the carry out of the top bit is 1.
Overflow happens only when both operands have the same sign bit and the result has the opposite sign bit. Here the operand sign bits are 1 and 0, which differ, so there is no overflow. A carry out alone does not mean overflow.
So the result is 0001 with no overflow. Options (A) and (D) report an overflow, and options (B) and (D) give , not .
Answer: (C)
Consider number represented in 4-bit gray code. Let be the gray code
representation of a number n and let be the gray code of (n+1) (modulo 16) value of the number. Which one of the following functions is correct?
Answer: (C)
Gray code of n is n XOR (n shifted right by 1). Make a table of the Gray code h of each n, and next to it the Gray code g of n + 1 (mod 16). Each row is then a pair h to g, and the value of h read as a number is the minterm number.
h to g: 0000 to 0001, 0001 to 0011, 0011 to 0010, 0010 to 0110, 0110 to 0111, 0111 to 0101, 0101 to 0100, 0100 to 1100, 1100 to 1101, 1101 to 1111, 1111 to 1110, 1110 to 1010, 1010 to 1011, 1011 to 1001, 1001 to 1000, 1000 to 0000.
Note that the minterm is the value of h itself (for example h = 0011 is minterm 3), not the row number n.
For , pick the h values whose g has bit 2 equal to 1: g = 0110, 0111, 0101, 0100, 1100, 1101, 1111, 1110 comes from h = 2, 6, 7, 5, 4, 12, 13, 15. So , which is option (C).
The other options list the minterms of a different bit. is , is and is .
Answer: (C)
h to g: 0000 to 0001, 0001 to 0011, 0011 to 0010, 0010 to 0110, 0110 to 0111, 0111 to 0101, 0101 to 0100, 0100 to 1100, 1100 to 1101, 1101 to 1111, 1111 to 1110, 1110 to 1010, 1010 to 1011, 1011 to 1001, 1001 to 1000, 1000 to 0000.
Note that the minterm is the value of h itself (for example h = 0011 is minterm 3), not the row number n.
For , pick the h values whose g has bit 2 equal to 1: g = 0110, 0111, 0101, 0100, 1100, 1101, 1111, 1110 comes from h = 2, 6, 7, 5, 4, 12, 13, 15. So , which is option (C).
The other options list the minterms of a different bit. is , is and is .
Answer: (C)
Keep practising