Font size
S
M
L
XL
WorksheetsPython Review KS3
Total questions: 17
Worksheet time: 10mins
Name
Class
Date
1.
What function do you use to display text?
a)
sum
b)
import
c)
print
d)
display
2.
To get the users' input what function do we use?
a)
Input
b)
input<>
c)
input()
d)
INPUT()
3.
Why do we use variables in programming?
a)
to edit data
b)
to store data
c)
integer?
d)
to look good
4.
What are these () called in programming?
a)
brackets
b)
quotation marks
c)
half circles
d)
parenthesis
5.
chose a string
a)
"tim"
b)
"tim
c)
'tim'
d)
"tim
e)
tim
6.
What will the output be from the following code?
print(Hello world!)
print(Hello world!)
a)
Hello world!
b)
SyntaxError
c)
Hello world
d)
print(Hello world!)
7.
12. In Python, 17 is an example of what data type?
a)
string
b)
integer
c)
boolean
d)
float
8.
12. In Python, "17" is an example of what data type?
a)
string
b)
integer
c)
boolean
d)
float
9.
12. In Python, True or False is an example of what data type?
a)
string
b)
integer
c)
boolean
d)
float
10.
Which of the following symbols is used in Python to mean "Greater than or equal to"?
a)
<=
b)
>>
c)
>=
d)
=>
11.
Which of the following symbols is used in Python to mean "Not equal to"?
a)
==
b)
!=
c)
<>
d)
><
12.
Which of the following symbols is used in Python to mean "Equal to"?
a)
=
b)
!=
c)
==
d)
>=
13.
Which two statements are used to implement iteration/Repetition)?
a)
IF and WHILE
b)
ELSE and WHILE
c)
FOR and WHILE
d)
IF and ELSE
14.
What result will display in the shell if 15 and 20 is entered by the user?
a)
"num1 + num2"
b)
1520
c)
35
15.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus +
c)
forward slash /
d)
asterisk *
16.
A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly
a)
True
b)
False
17.
Which statement correctly assigns the string "Tanner" to the variable name?
a)
name = print( "Tanner")
b)
input("Tanner")
c)
name = "Tanner"
d)
name = input("Tanner")
Reset
