I think answer would be option d but it is given as option c, how it is option c?
option d is right.
If options are not given then try to get the sequence by applying clocks to the given value,
As here 1010 was given if we apply a clock we will get 0101
and again if we apply a clock to 0101 we will get 1010 and this keeps on repeating.
@Piyush ####
how $1010$ to $0101$?
when we go backward, we can say it is a left shift
right?
and leftshift gives 1 as result
So, how will it get o and 1 simulteneously?
@srestha you cannot go backward as if you do left shift one cant predict whether the bit which is going to come at lsb will be 0 or 1 , so the idea of going backward and solving wont be a good option , so as in the given question you apply clock after 1010 1st clock 0101 2nd clock 1010 3rd clock 0101 4th clock 1010 2n-1 clock 0101 2n clock 1010 so it is having a sequence by this you could predict what was the content of the register 3 clocks back (Asked in the question) and this is how we will get 0101 as the answer.
64.3k questions
77.9k answers
244k comments
80.0k users