Year 8
More branches
Lesson details
Key learning points
- In this lesson, we will learn about multi-branch selection and while loops.
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, if the user enters Python at the prompt?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707169936%2Fbxsngybhs5bxrkfmzmtk.png&w=1920&q=75)
Hello Pythonista, You should try a little Python too
There is an error in the program, because there should not be any quotes around "Python" in line 3.
You should try a little Python too
You should try a little Python too, Hello Pythonista
Q2.
When this program is executed, what will be displayed on the screen, if the user enters Python at the prompt?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707169974%2Fvbmfbdxdoq9l3afscdrn.png&w=1920&q=75)
Hello Pythonista
Hello Pythonista, You should try a little Python too
There is an error in the program, because there should not be any quotes around "Python" in line 3.
You should try a little Python too, Hello Pythonista
Q3.
When this program is executed, what will be displayed on the screen, if the user enters Python at the prompt?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707169985%2Fzfkedhcfsfb83q76wlru.png&w=1920&q=75)
Hello Pythonista
You should try a little Python too
You should try a little Python too, Hello Pythonista
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%2Fv1707168170%2Fjgipq81ihm5qrx2ey72p.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%2Fv1707168184%2Fusjihl8rmzezah2untwt.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%2Fv1707168198%2Fuk2wlof570grmt99gbbf.png&w=828&q=75)
large
medium
small