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 51–55 of 66
The range of integers that can be represented by an n bit 2's complement number system is:
Answer: (A)
In an n-bit 2's complement number, the smallest value is 100..0 and the largest value is 011..1. So the range runs from up to .
Answer: to
Answer: to
The number is equivalent to
Answer: (A)
Octal to binary to hex:
Binary to base 4:
So, option (A).
Binary to base 4:
So, option (A).
Using a 4-bit 2's complement arithmetic, which of the following additions will result in an overflow?
I. 1100 + 1100
II. 0011 + 0111
III. 1111 + 0111
I. 1100 + 1100
II. 0011 + 0111
III. 1111 + 0111
Answer: (B)
In 4-bit two's complement the range is -8 to +7. Overflow happens when the true sum is outside this range.
I. 1100 + 1100 = (-4) + (-4) = -8. The 4-bit result is 1000, which is -8. It fits, so there is no overflow (there is a carry out, but also a carry into the sign bit).
II. 0011 + 0111 = 3 + 7 = 10, which is more than 7. The 4-bit result is 1010, which reads as -6. Two positive numbers gave a negative result, so this overflows.
III. 1111 + 0111 = (-1) + 7 = 6. The 4-bit result is 0110, which is 6. A negative and a positive number never overflow.
Only II overflows.
Answer: (B)
I. 1100 + 1100 = (-4) + (-4) = -8. The 4-bit result is 1000, which is -8. It fits, so there is no overflow (there is a carry out, but also a carry into the sign bit).
II. 0011 + 0111 = 3 + 7 = 10, which is more than 7. The 4-bit result is 1010, which reads as -6. Two positive numbers gave a negative result, so this overflows.
III. 1111 + 0111 = (-1) + 7 = 6. The 4-bit result is 0110, which is 6. A negative and a positive number never overflow.
Only II overflows.
Answer: (B)
Let A = 1111 1010 and B = 0000 1010 be two 8-bit 2's complement numbers. Their product in 2's complement is
Answer: (A)
Decode A: the sign bit is 1, so A is negative. Invert to get , add 1 to get . So .
B: .
Product: , which fits in 8 bits (range to ).
Encode : , invert to get , add 1 to get .
Answer: (A)
B: .
Product: , which fits in 8 bits (range to ).
Encode : , invert to get , add 1 to get .
Answer: (A)
What is the result of evaluating the following two expressions using three-digit floating point arithmetic with rounding?
(113. + - 111.) + 7.51
113. + (- 111. + 7.51)
(113. + - 111.) + 7.51
113. + (- 111. + 7.51)
Answer: (A)
Each result is rounded to three digits after every addition.
First expression:
, exactly.
, which already has three digits.
Second expression:
, which rounds to three digits as .
.
So the two expressions give 9.51 and 10.0, because rounding in the inner bracket loses the 0.49. This shows that floating point addition is not associative.
Answer: (A)
First expression:
, exactly.
, which already has three digits.
Second expression:
, which rounds to three digits as .
.
So the two expressions give 9.51 and 10.0, because rounding in the inner bracket loses the 0.49. This shows that floating point addition is not associative.
Answer: (A)
Keep practising