GATE Computer ScienceModerateGATE CS (PYQ pattern)

A rising-edge D flip-flop has D = 1 permanently and an active-low asynchronous clear. The flip-flop starts at Q = 0. Rising clock edges occur at 10, 20, 30, 40, 50 and 60 ns, and the clear input is asserted (low) from 25 to 35 ns and from 52 to 58 ns. How many times does Q change value between 0 and 70 ns?

  1. A. 5
  2. B. 3
  3. C. 4
  4. D. 6

Correct answer: A. 5

Q rises at 10 ns, falls when the clear starts at 25 ns, stays 0 at the 30 ns edge (clear active), rises at 40 ns, falls at 52 ns, and rises at 60 ns: 0→1, 1→0, 0→1, 1→0, 0→1 = 5 changes.

More Digital Logic questions

Exams that ask this topic