Question 24Asked in DSSSB TGT Computer Science (Technical), 8 Aug 2021, Shift 2

A 2 way switch works as follows: Both switches ON = light off

A 2 way switch works as follows: Both switches ON = light off Both switches OFF = light off One switch ON and other OFF = light on Which gate can be used to implement this?
  1. AOR
  2. BAND
  3. CNAND
  4. DXOR
Show answerHide answer

Correct answer: (D) XOR

Explanation

The light is on only when the two inputs differ, which is exactly the XOR truth table: 0,0→0; 1,1→0; 0,1 or 1,0→1.

From DSSSB TGT Computer Science PYQ (Technical), 8 Aug 2021, Shift 2

This is question 24 of DSSSB TGT Computer Science PYQ (Technical), 8 Aug 2021, Shift 2. 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.