Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Recap

Total questions: 16

Worksheet time: 9mins

Name
Class
Date
1.

What would I need to type in for the program to display Correct?

a)

A

b)

B

c)

Neither

d)

Both

2.

How many variables are in this code?

a)

1

b)

2

c)

0

3.

How many variables are in this code?

a)

0

b)

1

c)

2

4.

Which response will be displayed?

a)

You are too young

b)

You are old enough

5.

What colour are the strings in this code?

a)

Green

b)

Blue

c)

Black

d)

Orange

6.

What is the name of the variable in this code?

a)

answer1

b)

print

c)

Paddington

7.

Which keyword is used to read the user's answer to the question?

a)

input

b)

print

c)

if

d)

else

8.

What is the name of the variable in this code?

a)

answer1

b)

print

c)

else

9.

What is the name of the technique used to determine if the answer is correct or incorrect?

a)

selection

b)

print

c)

iteration

10.

What will happen if the user types in the answer "A"

a)

It will displays "Correct"

The score will go up by 1

b)

It will displays "Correct"

The score will go up by 1

It will display the new score

11.

What is your score when the program starts?

a)

0

b)

1

c)

-1

12.

This program is using selection

a)

True

b)

False

13.

Which test is correct for this program?

a)

if age is less than 18

b)

if age is greater than 18

14.

Select every scenario that will end the program

a)

Typing in the answer "A"

b)

Reaching 0 attempts

c)

Typing in the answer "B"

15.

How many selection statements are in this program?

a)

0

b)

1

c)

2

16.

Which skills are improved by learning programming?

a)

Logical thinking

b)

Problem solving

c)

Flexible thinking

d)

Creative writing