Year 5
Starting with selection
Lesson details
Key learning points
- In this lesson, we will identify conditions and selection. We will also write a program which includes selection.
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.
When this program is run nothing appears to happen. Why?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707159932%2Frxo1huytthgcnzx2err9.png&w=384&q=75)
The button needs to be held down.
The program needs to a do forever loop around the sparkle blocks.
Q2.
What will happen when the button is pressed once?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707159938%2Fptziudbtbreqf8tqevid.png&w=640&q=75)
The sparkle will flash blue once.
The sparkle will flash blue repeatedly.
Q3.
What will happen while the button is held down?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707159941%2Fvp7ghszxoltwo1umnhbs.png&w=640&q=75)
The sparkle will flash blue once.
The sparkle will switch off, then light blue.