Lesson details

Key learning points

  1. In this lesson, we will complete the 'make' part of PRIMM. We will complete an activity to create a joke machine. This will allow us to apply our new knowledge to a new, but similar scenario.

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...

3 Questions

Q1.
Which flowchart symbol is used to show a decision?
Circle
Correct answer: Diamond
Oval
Parallelogram
Q2.
Will this logical expression evaluate as True or False? (5-2+10/2) == 8
False
Correct answer: True
Q3.
What will be the output of this program when it is executed?
20
Correct answer: Nothing
score > 30
You won!

2 Questions

Q1.
If you want to increase the value held in the score variable by 1, which line of code should you use?
score + 1
score = 1
score = 1 + 1
Correct answer: score = score + 1
Q2.
What does this logical operator represent? !=
Equal to
Less that or equal to
More than or equal to
Correct answer: Not equal to

Lesson appears in

UnitComputing / Programming 2: Selection

Computing