wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Classwork 3

Total questions: 5

Worksheet time: 4mins

Name
Class
Date
1.

x = 5

print(x > 0 and x < 10)

Choose the output it'll display.

a)

True

b)

False

c)

No output

d)

don't know

2.

AND, OR, NOT are all examples of:

a)

Comparison operators

b)

Arithmetic operators

c)

Assignment operators

d)

Logical

operators

3.

<, >, >=, <=, ==, != are all examples of:

a)

Relational operators

b)

Arithmetic operators

c)

Assignment operators

d)

Logical

operators

4.

What is the result of ( 3>4 and 7>2)

a)

True

b)

False

c)

7

d)

9

5.

What is the value of x?

x= 6!=5

a)

True

b)

False

c)

Error

d)

5