wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Operators (Computer Science - Python)

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which of these is not a type of operator?

a)

Arithmetic Operator

b)

Relational Operator

c)

Communication Operator

d)

Boolean Operator

2.

Which of these is an arithmetic operator?

a)

>

b)

*

c)

<=

d)

AND

e)

'a'

3.

Which of these are arithmetic operators?

a)

-

b)

£

c)

%

d)

/

e)

@

4.

A ' (a)   ' operator works with the values TRUE and FALSE

5.

Multiplication, as an operator, is shown by...

a)

!

b)

x

c)

#

d)

*

6.

Which of these is not a boolean operator?

a)

WITH

b)

AND

c)

OR

d)

NOT

7.

Which of these are relational operators?

a)

+ (Add)

b)

< (Is Less Than)

c)

≤ (Is Less Than Or Equal To)

d)

> (Is Greater Than)

e)

= (Is Equal To)

8.

An operator is defined as...

a)

A character or string with the purpose of providing an output to the user

b)

A symbol that tells the compiler to perform a certain mathematical or logical manipulation

c)

A process of a lead technician identifying errors through the process of debugging

9.

True or False: the 'DIV' operator always gives a whole number

a)

True

b)

False

10.

True or False: 'Is not equal to' is often represented as '!='

a)

True

b)

False

11.

True or False: The 'MOD' operator divides a number by another and gives the answer

a)

True

b)

False: It gives the remainder

12.

The 'MOD' operator can also be represented as...

a)

DIV

b)

/

c)

\

d)

%

13.

'=' is a ' (a)   ' operator

14.

With a NOT operator...

a)

The condition must be true

b)

The condition must be false

c)

Either condition must be true

d)

All conditions must be true

15.

Which of these are arithmetic operators?

a)

'NOT'

b)

'MOD'

c)

'ADD'

d)

'OR'

e)

'DIV'

16.

With an AND operator...

a)

Both conditions must be false

b)

Either condition must be true

c)

Both conditions must be true

d)

Both numbers are added together

17.

With an OR operator...

a)

Both conditions must be true

b)

Either, not both, conditions must be true

c)

Either or both conditions must be false

d)

Either or both conditions must be true

18.

Which of the following is an operator which works with TRUE and FALSE?

a)

Decision Operator

b)

Truth Operator

c)

Von Neumann Operator

d)

Relational Operator

e)

Boolean Operator

19.

Which of the following is an operator that compares values with symbols such as '<' or '='

a)

Comparison Operator

b)

Relational Operator

c)

Archimedes Operator

d)

Arithmetic Operator

e)

Numerical Scale Operator (NSO)

20.

Which of these are not arithmetic operators?

a)

'$'

b)

'ADD'

c)

'::-'

d)

'NOT'