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.

Host this setFree Play

The 20 questions

  1. 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
  2. Which logic gate outputs 1 only when both of its inputs are 1?

    • NOT gate
    • Buffer gate
    • OR gate
    • AND gate
  3. Which logic gate has only one input?

    • NOT gate
    • AND gate
    • OR gate
    • Adder gate
  4. 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
  5. 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
  6. A heater should switch off when the room is NOT cold. Which gate performs the inversion?

    • NOT gate
    • OR gate
    • AND gate
    • Clock gate
  7. 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:
  8. 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
  9. 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
  10. 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
  11. 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
  12. Which Python operator reverses a Boolean value?

    • and
    • or
    • not
    • print
  13. 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
  14. 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
  15. What is the output of an AND gate when its inputs are 1 and 0?

    • 1
    • 10
    • 2
    • 0
  16. What is the output of an OR gate when its inputs are 0 and 0?

    • 00
    • 2
    • 0
    • 1
  17. 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
  18. A pupil uses NOT on a condition that is already False. What is the result?

    • True
    • 0.5
    • False
    • An error
  19. 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
  20. What is the output of an AND gate when both of its inputs are 0?

    • 1
    • 0
    • 00
    • 2

All KS3 Computing quizzes