Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

python 1-2

Total questions: 12

Worksheet time: 5mins

Name
Class
Date
1.

Which Data Type represents a whole number?

a)

string

b)

float

c)

bool

d)

int

2.

This particular Data Type has 2 potential values (typically True or False).

a)

String

b)

bool

c)

integer

d)

float

3.

A price such as £3.65 should be saved as what kind of variable?

a)

float

b)

int

c)

bool

d)

string

4.

Which Data Type would the following be stored as:--- "  Biscuit  "

a)

float

b)

bool

c)

string

d)

int

5.

Which of the following is an integer?

a)

20

b)

2.0

c)

"20"

d)

True

6.

What is a correct way to declare a Python variable?

a)

var x = 5

b)

$x=5

c)

x = 5

d)

#x = 5

7.
a)

True

b)

False

8.
a)

print(type(x))

b)

print(dtype(x))

c)

printx(type(x))

9.



(a)  

10.



(a)  

11.



(a)  

12.

x = True

print(type(x))

(a)