WorksheetsPython Operators Quiz
Total questions: 29
Worksheet time: 15mins
Which of the following is an arithmetic operator?
and
+
=
not
Which operator is used for exponent (power) in Python?
^
**
//
%
The operator % is used to find:
Quotient
Product
Remainder
Sum
Which of the following is a comparison operator?
==
=
+
*
Which operator is used for integer (floor) division?
/
//
%
*
Which of the following is a logical operator?
+
not
%
*
What symbol is used for “not equal to”?
=
==
!=
=
What is the result of 5 + 3 * 2?
16
11
10
8
Which operator has the highest precedence?
+
*
**
%
What is the result of 10 // 3?
3
3.33
1
4
Which statement is used for decision making?
while
for
if
What type of operator is >=?
Arithmetic
Comparison
Logical
Assignment
Which of these is a control statement?
print()
if
input()
int()
Which of the following is used for looping?
if
else
while
break
The operator not is used to:
Multiply
Reverse a condition
Compare
Divide
In if-else, which part runs when the condition is false?
if block
else block
print block
none
What is the result of 12 % 5?
2
3
4
1
Which operator checks if two values are equal?
=
==
!=
>=
Which statement is NOT a control statement?
Sequential
Conditional
Looping
Arithmetic
The operator used for subtraction is:
/
-
*
+
Operator precedence decides:
Variable names
Order of operations
Data types
Speed of Python
What is the output of 3 ** 2?
5
6
9
8
Which operator is used for multiplication?
+
*
/
%
What type of statement is if-elif-else?
Looping
Conditional
Arithmetic
Error-checking
Which operator is used to join two conditions?
and
+
=
%
What will be the result of 20 / 4?
5
4.0
5.0
4
The operator <= means:
less than
greater than
less than or equal to
equal to
Which control statement repeats a block of code?
if
else
while
break
What is the result of 10 - 3 * 2?
14
4
2
6
