By using logic gate, it can be concluded-
XOR table is used in this case?
What is logic gate?
Logic gate is a device which is used to build digital circuit.
Logic gate can make passage for a system to pass through when some logical conditions are fulfilled.
Different types of logic gates are-
AND gate, OR gate, NAND gate, XOR gate, NOR gate etc.
Here one switch is in the entrance hallway and other is in the living room.
The lights are on if the switches mismatch.
For this case, XOR table is used
A B Result
0 1 1
1 0 1
0 0 0
1 1 0
To learn more about logic gate, refer to the link-
https://brainly.com/question/24708297
#SPJ4