GATE Computer ScienceHardGATE CS (PYQ pattern)
In a 4-bit ripple-carry adder with no carry-in, for how many of the 256 operand pairs (A, B) is the carry generated at stage 0 (A0 = B0 = 1) propagated all the way through stages 1, 2 and 3 to the carry-out C4?
- A. 4
- B. 16
- C. 8
- D. 6
Correct answer: C. 8
Stage 0 generates: A0 = B0 = 1 (1 way). Each of stages 1-3 must propagate, i.e. have Ai ≠ Bi, which has 2 choices per stage. So 1 × 2 × 2 × 2 = 8 pairs.
More Digital Logic questions
- The IEEE 754 single-precision patterns 0x00600000 and 0x00200000 are added in single precision. What is the bit pattern of the result?
- The IEEE 754 single-precision pattern 0xC2F60000 represents −123.0. What is the single-precision bit pattern of −123 × 2⁻¹³⁵?
- In C with IEEE 754 single-precision float, let x = 16777216.0f (2²⁴). What are the values of (x + 1.0f) + 1.0f and x + (1.0f + 1.0f)?
- How many IEEE 754 single-precision numbers x satisfy 1 ≤ x < 1000?
- How many of the 2³² IEEE 754 single-precision bit patterns represent a finite value that is an integer (both zeros included, both signs…
- What is the smallest positive integer N such that N + 0.5 is NOT exactly representable in IEEE 754 single precision?