wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Back To Basics: Python Lesson 4 - 5 Review

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Select all Boolean values

a)

True

b)

False

c)

Unknown

2.

What will the statement below evaluate to?


"4" == 4

a)

True

b)

False

3.

What is happening with the code below?


name = 'federico'

a)

The computer is checking if the variable name has the string 'federico' inside it

b)

The computer is assigning the string 'federico' into the variable name

c)

The computer is assigning the float 'federico' into the variable name

4.

What is the output of this code?

a)

go

b)

slow down

c)

stop

d)

invalid

5.

What output will you get for a bmi of 24

a)

high health risk

b)

moderate health risk

c)

healthy bmi

d)

nutritional deficiency

6.

What is the value of pizza now?

a)

7

b)

9

c)

11

d)

8

7.

What data type is inside of x?

a)

Integer

b)

Float

c)

String

8.

Which of these are functions?

a)

print()

b)

Input()

c)

elif

9.

Running this piece of code will draw a triangle.

a)

True

b)

False

10.

What is the length of a side of the rectangle being drawn?

a)

100

b)

120

c)

200