Digital logic question


#1

Consider the waveforms given below:

The output can be obtained from the circuit
image

a) image
b) image
c) image
d) image


#2

If we take Q as previous output option c is correct.
from given diagram
inputs are:- 0 1 1 0 0 1 0 1 1
outputs are:- 0 1 0 0 0 1 0 1 0
assume first o/p is Q0=0.
in below statements and refer to and operation between binary numbers.
so,
1.input:0 ,prev o/p(Q0) compiment is 1, so 0 and 1 is Q1=0
2.input:1 prev o/p(Q1) compiment is 1, so 1 and 1 is Q2=1
3.input:1 prev o/p(Q2)compliment is 0, so 1 and 0 is Q3=0
4.input:0 prev o/p(Q3)compliment is 1, so 0 and 1 is Q4=0
5.input:0 prev o/p(Q4)compliment is 1, so 0 and 1 is Q5=0
6.input:1 prev o/p(Q5)compliment is 1, so 1 and 1 is Q6=1
7.input:0 prev o/p(Q6)compliment is 0, so 0 and 0 is Q7=0
8.input:1 prev o/p(Q7)compliment is 1, so 1 and 1 is Q8=1
9.input:1 prev o/p(Q8)compliment is 0, so 1 and 0 is Q9=0
so the answer is C.