Starter quiz
- What is a software program that allows you to build and test logic circuits called?
- a logic gate simulator ✓
- a logic gate builder
- a circuit tester
-
- A ______ is a picture used to represent a logical statement.
- 'circuit diagram' ✓
- In logic gate simulator software, what is a bulb?
- an input
- an output ✓
- a logic gate
- a label
-
- What gate is this?
- AND ✓
- OR
- NOT
-
- The light bulb in this circuit is on. What are the values of A and B?
- A = True and B = False
- A = True and B = True ✓
- A = False and B = True
- A = False and B = False
-
- What can be used to help identify inputs in a circuit diagram?
- 'a label' ✓
Exit quiz
- Which of the following are arithmetic operators in Python?
- AND
- NOT
- % ✓
- + ✓
- ==
-
- What does a comparison operator evaluate to?
- a number
- True or False ✓
-
- The order in which instructions are executed is called the ______.
- 'program flow' ✓
- A ______ is another name for a Boolean operator.
- 'logical operator' ✓
- In a Python program, what is used to make a decision about the program flow?
- a loop
- a condition ✓
- a variable
- a function
-
- What type of operator is >=?
- arithmetic
- comparison ✓
- Boolean
- assignment
-
Worksheet
Loading worksheet ...
Presentation
Loading presentation ...
Video
Lesson Details
Key learning points
- Boolean expressions give results that can be used in selection and iteration.
- Boolean logic is used in selection to test conditions.
- Complex decisions can be constructed with Boolean expressions.
Common misconception
Boolean logic is only used in logic circuits and logic gates.
The three fundamental Boolean operators are AND, OR and NOT. These are used in programs to perform selection and control program flow. In Python, these are written in words as: and, or, not.
Keywords
Boolean operator - an operator used in a Boolean expression, for example AND, OR and NOT
Logical operator - another name for a Boolean operator
Program flow - the order in which the instructions in a program are executed
+