Shift Registers - Technical MCQs

Q1:

A serial in/parallel out, 4-bit shift register initially contains all 1s. The data nibble 0111 is waiting to enter. After four clock pulses, the register contains ________.

A 0000

B 1111

C 0111

D 1000

ANS:C - 0111

Above solution is wrong. In question, they directly said 4-bit register initially contains all 1's so we have to take whole LSB bits has 1, not 0's.

0 1 1 1 |1 1 1 1 .

0 1 1 |1 1 1 1 1st clk.

0 1 |1 1 0 0 2nd clk.

0 |1 1 1 1 3rd clk.

|0 1 1 1 4th clk.

Answer 0111.