GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A 4-bit register Q3Q2Q1Q0 shifts right and the new Q3 is Q2 ⊕ Q0. How many distinct state cycles (including the all-zero fixed point) does it have?

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

Correct answer: C. 4

The register is invertible (Q0 is tapped), so all 16 states lie on cycles. The cycle lengths are 1, 3, 6 and 6, which add up to 16, so there are 4 cycles and no maximal-length sequence.

More Digital Logic questions

Exams that ask this topic