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 61–65 of 66
Sign extension is a step in
Answer: (D)
Sign extension means copying the sign bit into the new upper bits when a signed number is stored in more bits. Positive numbers get 0s and negative numbers get 1s, so the value stays the same. For example, the 4-bit number becomes the 8-bit number .
This is the step used when converting a signed integer from one size to a larger one, which is option (D).
The other options do not need it: floating point multiplication adds exponents and multiplies mantissas, 16-bit addition works on operands that already have the same width, and an arithmetic left shift only fills the right end with 0s.
Answer: (D)
This is the step used when converting a signed integer from one size to a larger one, which is option (D).
The other options do not need it: floating point multiplication adds exponents and multiplies mantissas, 16-bit addition works on operands that already have the same width, and an arithmetic left shift only fills the right end with 0s.
Answer: (D)
The 2's complement represent representation of the decimal value -15 is
Answer: (D)
Find the binary value of 15 with one extra bit for the sign. , so with a sign bit it is (5 bits).
Invert:
Add 1:
Check: in 5-bit 2's complement the top bit has weight , so .
At least 5 bits are needed, because 4 bits only cover to . Options (A) 1111, (B) 11111 and (C) 111111 are all in their own widths (4, 5 and 6 bits).
Answer: (D)
Invert:
Add 1:
Check: in 5-bit 2's complement the top bit has weight , so .
At least 5 bits are needed, because 4 bits only cover to . Options (A) 1111, (B) 11111 and (C) 111111 are all in their own widths (4, 5 and 6 bits).
Answer: (D)
The decimal value of 0.25
Answer: (B)
Convert the fraction by repeated multiplication by 2. The integer part of each product is the next bit after the binary point.
, integer part 0 (first bit).
, integer part 1 (second bit). The fractional part is now 0, so stop.
So . Check: .
Option (A) is wrong: . Option (D) is wrong: , so it has an exact binary form.
Option (C), 0.00111... with the 1s repeating, sums to . It is the same number as 0.01, in the way 0.0999... equals 0.1 in decimal. But it is only a non-terminating way of writing it; the conversion gives the exact finite form 0.01, which is option (B).
Answer: (B)
, integer part 0 (first bit).
, integer part 1 (second bit). The fractional part is now 0, so stop.
So . Check: .
Option (A) is wrong: . Option (D) is wrong: , so it has an exact binary form.
Option (C), 0.00111... with the 1s repeating, sums to . It is the same number as 0.01, in the way 0.0999... equals 0.1 in decimal. But it is only a non-terminating way of writing it; the conversion gives the exact finite form 0.01, which is option (B).
Answer: (B)
The 2's complement representation of is hexadecimal is
Answer: (C)
All the options have 12 bits, so put two 0's in front.
For 2's complement, flip every bit left of the rightmost 1. The result is
Correct Answer:
Consider the values of , and the sequence
executed on a computer where floating point numbers are represented with 32 bits. The values for X and Y will be
X:= A + B Y:= A + C
X:= X + C Y:= Y + B executed on a computer where floating point numbers are represented with 32 bits. The values for X and Y will be
Answer: (B)
A 32-bit float has a 24-bit significand, which is about 7 decimal digits. Here , and the gap between neighbouring floats near A is about . So adding to A is far too small to change it: .
X: exactly. Then .
Y: (the 1.0 is lost). Then .
So and .
Answer: (B)
X: exactly. Then .
Y: (the 1.0 is lost). Then .
So and .
Answer: (B)
Keep practising