Lesson T3.1.2
T3.1.2 Boolean logic in circuits and programming Quiz: KS3 Computing, Unit 3
20 questions
In partnership with Revision Ninja
Lesson T3.1.2, Boolean logic in circuits and programming: 20 multiple choice questions for the KS3 Computing (National Curriculum), Unit 3: Boolean logic and binary, written with Revision Ninja.
Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.
The 20 questions
-
What is a logic gate?
- A part of a monitor that controls the colour
- A memory store for large pictures
- A circuit element that performs a logical operation on its inputs
- A physical gate that stops people entering a building
-
Which logic gate outputs 1 only when both of its inputs are 1?
- NOT gate
- Buffer gate
- OR gate
- AND gate
-
Which logic gate has only one input?
- NOT gate
- AND gate
- OR gate
- Adder gate
-
A circuit lights a lamp only when switch A AND switch B are both on. Which gate is used?
- NOT gate
- AND gate
- OR gate
- Half-adder gate
-
A circuit sounds an alarm when a door sensor OR a window sensor is triggered. Which gate is used?
- NOT gate
- AND gate
- OR gate
- XOR gate written in a single word
-
A heater should switch off when the room is NOT cold. Which gate performs the inversion?
- NOT gate
- OR gate
- AND gate
- Clock gate
-
In a program, which statement is a decision that uses Boolean logic?
- print(door_open)
- for i in range(3):
- x = 5
- if door_open and light_on:
-
What does this program line check? if temp > 20 and not raining:
- The temperature is printed on the screen
- The variable raining is changed to True
- Either condition can be true for the code to run
- Both conditions must be true for the code to run
-
A pupil needs a gate that outputs 0 only when both inputs are 0. Which gate is this?
- NOT gate
- OR gate
- Clock gate
- AND gate
-
Why are logic gates used in computer hardware?
- They store photographs for a long time on a removable storage card
- They connect computers to the internet through a shared wireless signal
- They show images on a screen by lighting pixels in a fixed pattern
- They make decisions and perform calculations using binary signals
-
A circuit uses a NOT gate followed by an AND gate. What does the NOT gate do first?
- It adds the two inputs together
- It stores the output for later use
- It turns the output into a letter
- It reverses one input before the AND gate
-
Which Python operator reverses a Boolean value?
- and
- or
- not
-
A sensor sends 1 when a shop door is open. Which expression is 1 when the door is closed?
- door_open AND door_open
- door_open OR door_open
- print(door_open)
- NOT door_open
-
A pupil writes if raining or snowing: and wants both to be needed. Which change is correct?
- Remove the colon
- Add a number after snowing
- Replace raining with rain
- Replace or with and
-
What is the output of an AND gate when its inputs are 1 and 0?
- 1
- 10
- 2
- 0
-
What is the output of an OR gate when its inputs are 0 and 0?
- 00
- 2
- 0
- 1
-
Which circuit element would combine the signals from two sensors to decide whether to ring a bell?
- A monitor that displays the sensor readings
- A logic gate such as AND or OR
- A printer that prints the sensor values
- A speaker that plays a recorded sound only
-
A pupil uses NOT on a condition that is already False. What is the result?
- True
- 0.5
- False
- An error
-
Why is Boolean logic used in both circuits and programs?
- Both store data in paper files kept in a locked cabinet
- Both rely on true or false values to make decisions
- Both need the same colour scheme to look correct on the screen
- Both only work on text messages sent between two separate users
-
What is the output of an AND gate when both of its inputs are 0?
- 1
- 0
- 00
- 2
Related quizzes
- AND, OR and NOT Quiz · T3.1.1 · 20 questions
- Representing numbers in binary Quiz · T3.2.1 · 20 questions
- Binary addition and binary-decimal conversion Quiz · T3.2.2 · 20 questions
- Computational abstractions of real-world systems Quiz · T1.1.1 · 20 questions
- Solving problems with two or more programming languages Quiz · T2.1.1 · 20 questions
- Hardware and software components Quiz · T4.1.1 · 20 questions
- Combining applications across devices Quiz · T5.1.1 · 20 questions
- Using technology safely, respectfully and responsibly Quiz · T6.1.1 · 20 questions
- Sorting algorithms Quiz · T1.2.1 · 20 questions
- Textual programming languages Quiz · T2.1.2 · 20 questions