1
QuizMultiple Choice

You Will Never Walk through This Gate

Question 1 • Skelton - GSN - Computer Science Principles Semester A

If the temperature is above 20 degrees Celsius, the central heating is switched off. If the temperature is below 20 degrees Celsius, the central heating is switched on. Which logic gate applies? Input A = The temperature if above 20 degrees. Output Y = The central heating is turned on.

Answer
A
NOT gate
B
OR gate
C
XOR gate
D
AND gate

Explanation

Input A is true when the temperature is above 20°C. In that case, the heating is off, so output Y is false. When the temperature is below 20°C, A is false and the heating is on, so Y is true. The output is the opposite of the input, which is a NOT gate.

AI-written and checked against the verified answer.

Next