wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Mock-Up Academy Programming Online Test

Total questions: 20

Worksheet time: 40mins

Name
Class
Date
1.

What should replace the blank to print: Sum: 25?

a)

a * b

b)

a + b

c)

a / b

d)

a - b

2.

What is the output of this code?

a)

5

b)

6

c)

Error

d)

Null

3.

What will this code print?

a)

1

b)

4

c)

25

d)

21

4.

What will this code output?

a)

6

b)

5

c)

10

d)

12

5.

⁠ ⁠What is the output of this code?

a)

1

b)

4

c)

9

d)

5

6.

What is the output of the following code?

a)

Your input is academy!

b)

Your input is "academy"!

c)

Your input is input!

d)

Your academy is academy!

7.

What is the output of the following code?

a)

Duration: 30s, Activity: Refresh

b)

Duration: Refresh, Activity: 30

c)

NameError: name 'message' is not defined

d)

Duration: 30, Activity: Refresh

8.

What is the output of the following code?

a)

TypeError: can't multiply sequence by non-int of type 'str'

b)

999999

c)

54

d)

96

9.

What is the output of the following code?

a)

2222

b)

222

c)

22

d)

4

10.

What is the output of the following code?

a)

222222

b)

12

c)

22233

d)

2332

11.

What is the output of the following code?

a)

8

b)

6

c)

4

d)

12

12.

What is the output of the following code?

a)

A*A*A*A

b)

Error

c)

AAAA

d)

A4

13.

What is the output of the following code?

a)

9

b)

9

c)

12

d)

3

14.

What is the output of the following code?

a)

Null

b)

10

c)

5

d)

Error

15.

What replaces the blank?

a)

⁠ base * exp ⁠

b)

base + exp

c)

base ** exp

d)

exp * base

16.

What is the output of the following code?

a)

10

b)

"73"

c)

73

d)

TypeError

17.

What is the output of the following code?

a)

"Grab your {item}!"

b)

"Grab your book!"

c)

Error

d)

"Grab your!"

18.

What is the output of the following code?

a)

[0]

b)

[1, 2]

c)

[1, 2, 0]

d)

Error

19.

What is the output of the following code?

a)

14

b)

8

c)

11

d)

5

20.

What is the output of the following code?

a)

"message"

b)

"Hello"

c)

NameError

d)

Null