NEW
Font size
WorksheetsMock-Up Academy Programming Online Test
Total questions: 20
Worksheet time: 40mins
What should replace the blank to print: Sum: 25?
a * b
a + b
a / b
a - b
What is the output of this code?
5
6
Error
Null
What will this code print?
1
4
25
21
What will this code output?
6
5
10
12
What is the output of this code?
1
4
9
5
What is the output of the following code?
Your input is academy!
Your input is "academy"!
Your input is input!
Your academy is academy!
What is the output of the following code?
Duration: 30s, Activity: Refresh
Duration: Refresh, Activity: 30
NameError: name 'message' is not defined
Duration: 30, Activity: Refresh
What is the output of the following code?
TypeError: can't multiply sequence by non-int of type 'str'
999999
54
96
What is the output of the following code?
2222
222
22
4
What is the output of the following code?
222222
12
22233
2332
What is the output of the following code?
8
6
4
12
What is the output of the following code?
A*A*A*A
Error
AAAA
A4
What is the output of the following code?
9
9
12
3
What is the output of the following code?
Null
10
5
Error
What replaces the blank?
base * exp
base + exp
base ** exp
exp * base
What is the output of the following code?
10
"73"
73
TypeError
What is the output of the following code?
"Grab your {item}!"
"Grab your book!"
Error
"Grab your!"
What is the output of the following code?
[0]
[1, 2]
[1, 2, 0]
Error
What is the output of the following code?
14
8
11
5
What is the output of the following code?
"message"
"Hello"
NameError
Null
