NEW
Font size
S
M
L
XL
WorksheetsPython Recap Challenge
Total questions: 13
Worksheet time: 12mins
Name
Class
Date
1.
What is the name of the environment in Python that write your programs and then test them out?
a)
Shell
b)
Window
c)
IDLE
d)
CLI
2.
What extension must you add to the end of a file when saving?
a)
.xlsx
b)
.pptx
c)
.docx
d)
.py
3.
What does the term 'debug' mean?
a)
Identify errors and fix them.
b)
Making a calculation
c)
A set of instructions
d)
Looking at code
4.
How do you display text?
a)
input
b)
output
c)
print
d)
variable
5.
How do you program an input from the user?
a)
print
b)
variable = input()
c)
if
d)
else
6.
What does the following code do?
name = input("what is your name")
name = input("what is your name")
a)
says hello
b)
asks for the users DOB
c)
Asks for the users name and stores it in a variable
d)
Checks information
7.
What is a a variable?
a)
A condition
b)
Display text
c)
A program
d)
A location to store data
8.
The second part of if, that is executed when the condition is false
a)
if
b)
else
c)
for
d)
input
9.
The character that must be at the end of the line for if, while, for etc.
a)
:
b)
;
c)
.
d)
,
10.
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!)
11.
print("12"*3)
What would this print?
What would this print?
a)
36
b)
121212
c)
24
d)
12*3
12.
a)
5
4
3
2
1
4
3
2
1
b)
4
3
2
1
0
3
2
1
0
c)
5 4 3 2 1
d)
4 3 2 1 0
13.
a)
5
4
3
2
1
4
3
2
1
b)
4
3
2
1
0
3
2
1
0
c)
5 4 3 2 1
d)
4 3 2 1 0
Reset
