wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

WEB UNICORN FINAL

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

Which data type includes decimal numbers?

a)

int

b)

float

c)

str

d)

boolean

2.

Characteristics of type conversion:

a)

automatic

b)

loop

c)

semi

d)

manual

3.

A dictionary is:

a)

non-mutable

b)

mutable

c)

set of elements

d)

tuple

4.

input accepts input in the form of:

a)

int

b)

str

c)

float

d)

none

5.

Which of the following data types is mutable?

a)

string

b)

tuple

c)

int

d)

list

6.

Logical operators are:

a)

and, or

b)

and, or, not

c)

and, or, not, if

d)

if, elif

7.

What is the data type of the variable X in the following code?

X = [1, 2, 3, 4, 5]

a)

tuple

b)

list

c)

dict

d)

set

8.

Which of the following data types is mutable in Python?

a)

str

b)

tuple

c)

list

d)

int

9.

What is the output of this:

print(5 > 3 or 2 > 4)

a)

true

b)

false

c)

none

d)

error

10.

What is the purpose of the (and) operator in Python:

a)

To check if at least one condition is true

b)

To check if both conditions are true

c)

To check if a condition is false

d)

To check if both conditions are false