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 21–25 of 66
In 16-bit 2's complement representation, the decimal number -28 is:
Answer: (C)
Write +28 in 16 bits: 0000 0000 0001 1100.
Now find the 2's complement. Invert all bits 1111 1111 1110 0011, then add 1 1111 1111 1110 0100.
Answer: 1111 1111 1110 0100
Now find the 2's complement. Invert all bits 1111 1111 1110 0011, then add 1 1111 1111 1110 0100.
Answer: 1111 1111 1110 0100
Consider Z = X - Y where X, Y and Z are all in sign-magnitude form. X and Y are each represented in n bits. To avoid overflow, the representation of Z would require a minimum of:
Answer: (C)
A sign-magnitude number with n bits has 1 sign bit and n 1 magnitude bits. The value of X Y can be as big as (max magnitude) + (max magnitude). For example, take (+max) (max). This needs one more magnitude bit.
So Z needs n + 1 bits.
Answer: n+1 bits
So Z needs n + 1 bits.
Answer: n+1 bits
Consider the unsigned 8-bit fixed point binary number representation below,
where the position of the binary point is between . Assume is the most significant bit. Some of the decimal numbers listed below cannot be represented exactly in the above representation:
(i) 31.500 (ii) 0.875 (iii) 12.100 (iv) 3.001
Which one of the following statements is true?
where the position of the binary point is between . Assume is the most significant bit. Some of the decimal numbers listed below cannot be represented exactly in the above representation:
(i) 31.500 (ii) 0.875 (iii) 12.100 (iv) 3.001
Which one of the following statements is true?
Answer: (C)
The format has 5 integer bits () and 3 fraction bits (). So it can show only multiples of , from to .
- (i) is a multiple of and is in range, so it can be represented exactly ().
- (ii) can be represented exactly ().
- (iii) : the fraction is not a multiple of , so it cannot be represented exactly.
- (iv) : the fraction is not a multiple of , so it cannot be represented exactly.
So only (iii) and (iv) cannot be represented exactly.
Answer: (C)
- (i) is a multiple of and is in range, so it can be represented exactly ().
- (ii) can be represented exactly ().
- (iii) : the fraction is not a multiple of , so it cannot be represented exactly.
- (iv) : the fraction is not a multiple of , so it cannot be represented exactly.
So only (iii) and (iv) cannot be represented exactly.
Answer: (C)
The n-bit fixed-point representation of an unsigned real number real X uses f bits for the fraction part. Let i=n-f. The range of decimal values for X in this representation is
Answer: (D)
The number has i integer bits and f fraction bits.
The smallest value is 0, when all bits are 0.
The largest value is when all bits are 1: .
Answer: 0 to
The smallest value is 0, when all bits are 0.
The largest value is when all bits are 1: .
Answer: 0 to
The representation of the value of a 16-bit unsigned integer X in hexadecimal number system is BCA9. The representation of the value of X in octal number system is
Answer: (D)
Write BCA9 in binary: 1011 1100 1010 1001. Now make groups of 3 bits, starting from the right: 1 011 110 010 101 001. Each group gives one octal digit: 1 3 6 2 5 1.
Answer: 136251
Answer: 136251
Keep practising