Font size
WorksheetsHalf term recap quiz
Total questions: 15
Worksheet time: 14mins
What is the 'input()' function used for in python?
To output a message to the screen.
To receive an input that the user types using a keyboard.
To preform a calculation- like adding a number.
To create a container which stores data.
What is the "print()" function used for in python?
To output a message to the screen.
To receive an input that the user types using a keyboard.
To print out a sheet of paper to the FAX machine.
To find the answer to a mathematical calculation.
What is 'syntax' in computing?
A tax you have to pay for using the internet.
A mathematical symbol such as + or =.
Errors in code such as incorrect spelling or missing symbols.
When a program is deleted.
What character do we use to assign a value to a 'variable' (container)?
!
+
=
/
What is the output of the program in the image? (click to enlarge)
score
Your score is score
There is an error in the code.
Your score is 20
What will be the output of the print function in the image?
Welcome Enter your name:
Welcome name
Welcome + whatever the user types for the input.
There is an error in the code
Identify the two errors in the code displayed in the image:
They forgot to assign a value to the variable.
'input' is spelled wrong.
They didn't enter their name.
There is a missing comma in the print function to separate the message from the variable.
Identify the two errors in the code displayed in the image.
There is no input from the user.
There is a missing bracket on the end.
The 'print()' function is spelled with an uppercase P here.
There are too many speechmarks.
Which of these statements is good advice if it is rainy outside?
Don't wear a coat.
Wear sunglasses.
Get an umbrella.
Roll around on the grass at breaktime.
Which of these statement is good advice if it is sunny outside?
Get some sunglasses
Put on a warm, hooded coat.
Don't wear sun cream.
Spend all day inside playing fortnite.
What will be the output of the program in the image if the user types in the word "Hi"?
Nothing.
HiHiHiHiHi
There is an error inthe code.
Hi
True or False:
Is (2+2) equal to (2x2)?
True
False
True or false:
Is (5 x 5) equal to 25?
True
False
True or False:
Is (2 + 8) equal to (2 x 8)?
True
False
What is a 'variable' in python?
A way to add a larger variety of numbers to your program.
A word that can be used to find the area of a square.
A way to receive input from the user.
A container which we can create to store data such as numbers inside.
