Question 75Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 1 (9:00 AM)

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?
  1. AAND
  2. BXOR
  3. COR
  4. DNOR
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.

From DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 1 (9:00 AM)

This is question 75 of DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 1 (9:00 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.