wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Conditionals

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

Python if statement is one of the most commonly used conditional statements in programming languages.

a)

True

b)

False

2.

Conditional statements are also known as decision-making statements.

a)

True

b)

False

3.

In Python we can achieve decision making by using the following statement:

a)

print

b)

if statements

c)

input

d)

value

4.

Decision making is required when we want to execute a code only if a certain condition is satisfied.

a)

True

b)

False

5.

The   elif   (else if) statement can be included between the   if   statement and the   else   statement to add further conditions.

a)

True

b)

False

6.

Similar to the else, the elif statement is optional.

a)

True

b)

False

7.

What conditional comes before ELIF?

a)

Elise

b)

Out

c)

IF

d)

Open

8.

What are 3 examples of Boolean operators?

a)

Not, Add, Again

b)

When, Where, Why

c)

And, Not, Or

d)

If, Else, Enter

9.

What is the abbreviation used when typing casting an integer?

a)

ger

b)

num

c)

typec

d)

int

10.

When creating a print statement, what symbol do you use when you need to add strings to other strings or number variables, etc.?

a)

+

b)

=

c)

//

d)

%