Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Operators & IF Statements

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

What does this operator do? ' * '

a)

Divide

b)

Add

c)

Subtract

d)

Multiply

2.

The Floor Division operator looks like this

a)

//

b)

/

c)

-

d)

|

3.

< , > , == , != Are examples of which operator

a)

Arithmetic

b)

Logical

c)

Realtional

d)

Assignment

4.

Is this statement true 5>=5

a)

True

b)

False

5.

a=10

a+=7

print(a)

What will this output?

a)

3

b)

Error

c)

17

d)

True

6.

a=27

a/=3

print(a)

What will this output?

a)

24

b)

30

c)

9

d)

3

7.

if 4>=2 and 3<=8:

print("true)

else:

print("false")

a)

True

b)

False

8.

An if statement allows you to check wether a condition is true or false and carry out different actions based on the outcome. Is this statement correct?

a)

Yes

b)

No

9.

Which of these is an example of an assignment operator?

a)

+

b)

//

c)

=

d)

<=

10.

'While' and 'For' are types of?

a)

Food

b)

Pseudocode

c)

Loops

d)

Operators