Year 8
Round and round
Lesson details
Key learning points
- In this lesson, we will learn how to use a variable as a counter within a loop.
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 executed, what will be displayed on the screen?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707168235%2Fwr0e7ww1m8ilrotougng.png&w=640&q=75)
13, zero
13, zero, 0
Nothing will be displayed on the screen.
Q2.
When this program is executed, what will be displayed on the screen?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707168243%2Ffvfufrsvyakxsssq6alb.png&w=828&q=75)
large
medium, large
small
Q3.
When this program is executed, what will be displayed on the screen?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707168252%2Fibcnz2quf0y1bb6kvffr.png&w=828&q=75)
large
medium
small
3 Questions
Q1.
How many times will line 3 be executed?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707207116%2Fercc6wlbhye3hi9qogcj.png&w=1080&q=75)
1
4
Infinitely (the condition in line 2 will never become False)
None (the condition in line 2 will be False the first time it is checked)
Q2.
How many times will line 3 be executed?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707207122%2Fp0jvkb1urx9me0qdso8k.png&w=750&q=75)
1
3
4
None (the condition in line 2 will be False the first time it is checked)
Q3.
How many times will line 3 be executed?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707207125%2Fp8hravk3u4ntfujt67mv.png&w=750&q=75)
1
3
Infinitely (the condition in line 2 will never become False)
None (the condition in line 2 will be False the first time it is checked)