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 1–5 of 66
Consider the -bit signed integers and represented using the sign-magnitude form. The binary representations of and are as follows:
Which of the following operations to compute result(s) in an arithmetic overflow?
Which of the following operations to compute result(s) in an arithmetic overflow?
One or more options are correct.
Answer: (B), (C)
In 8-bit sign-magnitude form, bit 7 is the sign bit. Bits 6-0 hold the magnitude. The largest magnitude .
For : the sign bit (negative). The magnitude , so .
For : the sign bit (positive). The magnitude , so .
Overflow occurs when the magnitude of the true result is more than , that is, when it is outside :
- → inside the range, no overflow.
- → magnitude , overflow.
- → magnitude , overflow.
- → inside the range, no overflow.
Answer: Z = X - Y, and Z = -X + Y
For : the sign bit (negative). The magnitude , so .
For : the sign bit (positive). The magnitude , so .
Overflow occurs when the magnitude of the true result is more than , that is, when it is outside :
- → inside the range, no overflow.
- → magnitude , overflow.
- → magnitude , overflow.
- → inside the range, no overflow.
Answer: Z = X - Y, and Z = -X + Y
Consider the real valued variables and represented using the IEEE singleprecision floating-point format. The binary representations of and in hexadecimal notation are as follows:
Let .
Which one of the following is the binary representation of , in hexadecimal notation?
Let .
Which one of the following is the binary representation of , in hexadecimal notation?
Answer: (C)
IEEE-754 single precision has 1 sign bit, 8 exponent bits (bias 127) and 23 mantissa bits.
. Split as . The sign bit is , the exponent bits (unbiased ) and the mantissa . So .
. Split as . The sign bit is , the exponent bits (unbiased ) and the mantissa . So .
To add them, bring the exponent of to by shifting its mantissa right by bits: .
Now add: .
This is already normalized, as the leading digit is . So has sign , exponent bits and mantissa bits followed by 19 zeros:
Regroup in 4 bits from the left: .
Answer: (C)
. Split as . The sign bit is , the exponent bits (unbiased ) and the mantissa . So .
. Split as . The sign bit is , the exponent bits (unbiased ) and the mantissa . So .
To add them, bring the exponent of to by shifting its mantissa right by bits: .
Now add: .
This is already normalized, as the leading digit is . So has sign , exponent bits and mantissa bits followed by 19 zeros:
Regroup in 4 bits from the left: .
Answer: (C)
In a system, numbers are represented using -bit two's complement form. Consider four numbers and in the system. Which of the following operations will result in arithmetic overflow?
One or more options are correct.
Answer: (B), (D)
First, change each 4-bit two's complement number into its signed decimal value. To do this, invert the bits and add when the leading bit is . The values are: . With bits in two's complement, the range is . If a result is outside this range, overflow occurs.
- → inside the range. No overflow.
- → less than . Overflow.
- → inside the range. No overflow.
- → less than . Overflow.
Answer: N2+N3 and N1+N4 give arithmetic overflow.
- → inside the range. No overflow.
- → less than . Overflow.
- → inside the range. No overflow.
- → less than . Overflow.
Answer: N2+N3 and N1+N4 give arithmetic overflow.
The -bit single precision representation of a number is . The number in decimal representation is ________. (rounded off to two decimal places)
Answer: -60.25
Write in binary, 4 bits per hex digit:
So the 32 bits are .
Split them as 1 sign bit, 8 exponent bits and 23 mantissa bits:
The sign bit is , so the number is negative. The exponent bits are , and with bias the exponent is . The mantissa bits are , so the mantissa is .
The number is .
Answer: -60.25
So the 32 bits are .
Split them as 1 sign bit, 8 exponent bits and 23 mantissa bits:
The sign bit is , so the number is negative. The exponent bits are , and with bias the exponent is . The mantissa bits are , so the mantissa is .
The number is .
Answer: -60.25
The number can be represented as 1010 in 4-bit 2's complement representation. Which of the following is/are CORRECT 2's complement representation(s) of ?
One or more options are correct.
Answer: (B), (D)
To extend a two's-complement number to more bits, you must use sign-extension. Copy the sign bit (here the leading , because is negative) into every new high-order bit. You cannot just add any bits or zeros in front.
in 4 bits is .
Correct 8-bit sign-extension: (four 's added in front). The other choice adds in front instead of copying the sign bit, so it is wrong.
Correct 16-bit sign-extension: (twelve 's added in front). The other choice is wrong in the same way.
Answer: 1111 1010 (8-bit) and 1111 1111 1111 1010 (16-bit)
in 4 bits is .
Correct 8-bit sign-extension: (four 's added in front). The other choice adds in front instead of copying the sign bit, so it is wrong.
Correct 16-bit sign-extension: (twelve 's added in front). The other choice is wrong in the same way.
Answer: 1111 1010 (8-bit) and 1111 1111 1111 1010 (16-bit)
Keep practising