wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

9x8 activity

Total questions: 30

Worksheet time: 14mins

Name
Class
Date
1.

Which python operator means 'less than or equal to'?

a)

>=

b)

>

c)

<

d)

<=

2.

Which one of these is floor division?

a)

/

b)

//

c)

%

d)

None of the mentioned

3.
Arithmetic Operators - 
What is + ?
a)
Addition
b)
Subtraction
c)
Multiplication
d)
Division
4.
Arithmetic Operator
What is a * ?
a)
Addition
b)
Subtraction
c)
Multiplication
d)
Modulo
5.
Variables cannot be changed.
a)
False
b)
True
6.
Comparison Operators
What is >= ?
a)
Greater than
b)
Less than
c)
Greater than or equal to
d)
Less than or equal to
7.
Comparison Operators
What is < ?
a)
Greater than
b)
Less than
c)
Greater than or equal to
d)
Less than or equal to
8.

Comparison Operators

What is A > B?

a)

A greater than B

b)

A less than B

c)

Greater than or equal to

d)

Less than or equal to

9.
Comparision Operators
What is == ? 
a)
Equal to 
b)
Equal value and equal type
c)
Not equal
d)
Not equal value or not equal type
10.

Which of the following is true?

a)

A Boolean data type has only two values: yes and no

b)

A Boolean data type has only two values: true and false

c)

A Boolean data type has only two values: 1 and 0

11.

Name the Gate

a)

OR

b)

AND

c)

NOT

d)

XOR

12.

Name the Gate

a)

NAND

b)

XOR

c)

NOT

d)

AND

13.

Name the Gate

a)

NAND

b)

AND

c)

OR

d)

NOT

14.

Name the Gate

a)

OR

b)

AND

c)

NOT

d)

XOR

15.
What logic gate is this?
a)
AND
b)
OR 
c)
NOT
d)
TO
16.
What logic gate is this?
a)
AND 
b)
OR 
c)
NOT 
d)
THE
17.
What logic gate is this?
a)
OR
b)
NOT
c)
AND 
d)
THE
18.
What gate is this truth table for?
a)
AND
b)
OR
c)
NOT
d)
THE 
19.
What gate is this table for?
a)
AND
b)
XOR
c)
OR 
d)
NOT
20.
What gate is this table for?
a)
AND
b)
OR
c)
NOT
d)
NOR
21.

2 > 3

a)

TRUE

b)

FALSE

22.

40 > 41

a)

TRUE

b)

FALSE

23.
<=
a)
less than
b)
less than or equal to
24.
>=
a)
greater than
b)
greater than or equal to
c)
not greater than
d)
not equal to
25.
==
a)
equal to
b)
assign a variable
c)
not equal to
d)
less than
26.
! =
a)
greater than variable
b)
less than variable
c)
equal to
d)
not equal to
27.
3<=4
a)
TRUE
b)
FALSE
28.
2 = = 3
a)
TRUE
b)
FALSE
29.

__________ operator returns true, if all the sub-conditions are true.

a)

AND

b)

OR

c)

NOT

d)

NAND

30.

__________ operator returns true, if any of the sub-condition is true.

a)

AND

b)

OR

c)

NOT

d)

NAND