Which logical operation does the ALU perform that results in a 1 output only when both inputs
Which logical operation does the ALU perform that results in a 1 output only when both inputs
are different?
Show answerHide answer
Correct answer: (B) XOR
Explanation
XOR gives 1 only when its inputs differ (0,1 or 1,0) and 0 when they are the same. AND needs both 1, OR needs at least one 1.