warning

These resources will be removed by end of Summer Term 2025.

Switch to our new teaching resources now - designed by teachers and leading subject experts, and tested in classrooms.

Lesson details

Key learning points

  1. In this lesson, we will introduce logical and comparison operators. We will get practise in this by being given different expressions to decode to see if they evaluate to 'true' or 'false' before being tasked with modifying a 'Big Quiz' Scratch program.

Licence

This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.

Loading...

4 Questions

Q1.
A selection statement evaluates an expression as what?
Correct answer: Either true or false
False
True
True and false
Q2.
Which part of the following block of code would be considered the expression?
An image in a quiz
Correct answer: character is male
Remove from game
then
When green flag is clicked
Q3.
The lines of code following the "else" will only be executed if the expression has evaluated to false
False
Correct answer: True
Q4.
What will be the output of this program when it is executed? (What will the sprite say?)
An image in a quiz
Good afternoon
Correct answer: Good afternoon and How are you
How are you?
Nothing will be outputted/said

6 Questions

Q1.
The greater than symbol in the image below is an example of a comparison operator or a logic operator?
An image in a quiz
Correct answer: Comparison
Logic
Q2.
The greater than symbol in the image below is an example of a comparison operator or a logic operator?
An image in a quiz
Comparison
Correct answer: Logic
Q3.
Does the following statement evaluate as True or False? - (30 < 50) or (30 > 50)
False
Correct answer: True
Q4.
Does the following statement as True or False? - (20 = 20) and (15 < 15)
Correct answer: False
True
Q5.
Does the following statement as True or False? - not (20 = 20)
Correct answer: False
True
Q6.
Which of the conditions would evaluate to ‘true’ with the following inputs? [2 answers]
An image in a quiz
Correct answer: (number 1 > 20) and (number2 < 100)
Correct answer: (number 1 > 20) or (number2 < 100)
(number 1 > 30) and (number2 < 91)
(number 1 > 30) or (number2 < 90)