Year 8
Crunching numbers
Lesson details
Key learning points
- In this lesson, we will gain a deeper understanding of assignment. We will also explore arithmetic expressions.
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 of these statements is a definition for an algorithm?
Breaking down a problem into smaller, more manageable chunks.
Spotting patterns in programs.
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%2Fv1707168459%2Filtvjsvhod44kfn9uyxd.png&w=1920&q=75)
"I live in", "Leeds"
"I live in", location
I live in location
Q3.
When this program is executed, what will be displayed on the screen, as a result of executing line 3?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707168463%2Fuanl01xweyqfm59tydvb.png&w=1200&q=75)
I’ve never been to input()
I’ve never been to location
It is not possible to know the output without executing the program.
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%2Fv1707172568%2Fplytrtfc449ciyg4pj09.png&w=3840&q=75)
The Answer is 3 + 13 * 3
The Answer is 48
The Answer is answer
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%2Fv1707172570%2Fppomcgiktfosyl2tyjfu.png&w=1920&q=75)
13
13 42
There is an error in the program because variable a cannot hold two values at the same time.
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%2Fv1707172580%2Fs2h9fupr4c1onhejujbo.png&w=1920&q=75)
13 42
42 13
There is an error in the program because variables a and b are not assigned values in the right order.