GATE Computer ScienceEasyGATE CS (PYQ pattern)

A D flip-flop is to be made from a J-K flip-flop with J = D and K = D', but by mistake it is wired with J = K = D. Starting from Q = 0, the inputs D = 1, 1, 0, 1, 0, 0 are applied on six successive clock edges. After how many of these six edges does Q differ from what a correct D flip-flop would hold, and what is the final Q?

  1. A. 3 edges; final Q = 0
  2. B. 2 edges; final Q = 1
  3. C. 3 edges; final Q = 1
  4. D. 4 edges; final Q = 1

Correct answer: C. 3 edges; final Q = 1

With J = K = D the J-K flip-flop toggles when D = 1 and holds when D = 0, i.e. it is a T flip-flop. Q goes 1, 0, 0, 1, 1, 1, while a D flip-flop would hold 1, 1, 0, 1, 0, 0. They differ after edges 2, 5 and 6: 3 edges, and the final Q is 1.

More Digital Logic questions

Exams that ask this topic