You can check your answer out with a truth table.  It agrees with the one at the start of the problem.                                                                                                      

A

B

C

Q

0

0

1

1

0

1

0

0

1

0

1

1

1

1

0

1

 

 

 

 

BACK