Similar questions 18 more →
Counters & Timing

Answer & solution
Official answer: D
Our answer: D for one shift orientation; A for the reverse
A Johnson counter feeds the complement of one end bit into the other end of a shift register. With the right-shift/MSB-insertion convention, bits fill with ones and then zeros, producing eight states before returning. Reversing the bit-weight convention reflects each four-bit word and converts D into A. Therefore the official D is consistent but not uniquely forced by the direction-free wording; B and C are not this eight-state twisted-ring cycle.
Solution: Complemented end-bit feedback with right shifts gives 0000→1000→1100→1110→1111→0111→0011→0001→0000, the official D. With left shifts and the opposite end-bit feedback, the equally valid Johnson counter gives 0, 1, 3, 7, 15, 14, 12, 8, 0, option A. The question does not specify shift direction or bit-weight orientation; D is conventional, not uniquely implied.