Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Quiz

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

What is the coder's word for converting one data type into another?

a)

casting

b)

throwing

c)

catching

2.

Which container type will you use to store the personal best times achieved by club swimmers in the 100m freestyle such as: Mark: 65.34s, Freya: 68.04s, etc.

a)

tuple

b)

list

c)

dictionary

3.

Which container type will you use to store the months of the year?

a)

tuple

b)

list

c)

dictionary

4.

Which container type will you use to store the monthly rainfall data for Dubai in 2019?

a)

tuple

b)

list

c)

dictionary

5.

Which container type will you use to store the names of the students who currently attend the Coding class?

a)

tuple

b)

list

c)

dictionary

6.

Which is the best choice to store seven strings consisting of the days of the week (e.g. "Monday") that we want to use in an application?

a)

tuple

b)

list

c)

dictionary

7.

Which is the best choice to store the full names of members of the Coding class in an application we use to keep track of who is still a club member?

a)

tuple

b)

list

c)

dictionary

8.

Which is the best choice to store the ten integer values (0, 1, 2, 3, 4, 5, 6, 7, 8 and 9) of the keys used to make a calculator app?

a)

tuple

b)

list

c)

dictionary

9.

______________ are comments in a program that explain what the code does

a)

Concatenation

b)

Type Casting

c)

Annotation

10.

______________ is the classification of data which tells a computer how to process the data.

a)

Concatenation

b)

Data type

c)

Annotation