Lesson details

Key learning points

  1. In this lesson, we will learn about expressions that evaluate to 'true' or 'false'. We will also learn about IF statements by developing your Big Ed chat program from the previous lesson.

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.
The data linked to a variable is stored in the computer's memory.
False
Correct answer: True
Q2.
Variables can hold more than one value at a time
Correct answer: False
True
Q3.
What would the output of "say weather" be at the end of this program? (Source: Scratch)
Correct answer: cloudy
rain
rain, sun, rain, cloudy
weather
Q4.
What value would be held by the ‘name1’ variable and the ‘name2’ variable at the end of this program? (Source: Scratch)
name1 = Jordan name2= Jordan
name1 = Jordan name2= Riley
Correct answer: name1 = Riley name2 = Riley
name1 = Riley name2= Jordan

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?
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?)
Good afternoon
Correct answer: Good afternoon and How are you
How are you?
Nothing will be outputted/said

Lesson appears in

UnitComputing / Programming essentials in Scratch: part I

Computing