0% found this document useful (0 votes)
2 views1 page

Python Operators

The document contains a practice quiz on Python operators, consisting of 13 multiple-choice questions. It covers various topics such as output of code snippets, operator types, and expressions in Python. The quiz is designed to test knowledge of Python programming concepts within a 15-minute timeframe.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Python Operators

The document contains a practice quiz on Python operators, consisting of 13 multiple-choice questions. It covers various topics such as output of code snippets, operator types, and expressions in Python. The quiz is designed to test knowledge of Python programming concepts within a 15-minute timeframe.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Techventure Academy

Practice

Python Operators
Time: 15 minutes

1. What is the output of the following Python code snippet? `x = 10 y = 3 print(x // y)`
(a) 3 (b) 3.33 (c) 0 (d) 10

2. Which operator is used for exponentiation in Python?


(a) * (b) ** (c) ^ (d) //

3. What will be the result of `5 > 3 and 3 > 1` in Python?


(a) True (b) False (c) Error (d) None

4. Consider the expression `a = 5 a += 2`. What is the final value of `a`?


(a) 5 (b) 7 (c) 2 (d) 10

5. Evaluate the expression `2 ** 3 * 2` in Python.


(a) 16 (b) 12 (c) 48 (d) 8

6. What is the membership operator that checks if an element is NOT present in a


sequence?
(a) in (b) not (c) notin (d) not in

7. What is the output of `10 % 3` in Python?


(a) 3 (b) 1 (c) 3.33 (d) 0

8. What is the result of `not True and False` in Python?


(a) True (b) False (c) None (d) Error

9. Consider the expression `b = 10 b -= 3`. What is the final value of `b`?


(a) 10 (b) 7 (c) 3 (d) 13

10. What is the result of `3 == 3.0` in Python?


(a) False (b) True (c) Error (d) None

11. What does the `or` operator do in Python?


(a) Returns True if (b) Returns True if at (c) Returns True if (d) Returns True if the
both operands are least one operand is both operands are operands are
True. True. False. different.

12. Which of the following is a comparison operator?


(a) + (b) * (c) >= (d) //

13. What is the output of `(5 * 2) + 3` in Python?


(a) 13 (b) 25 (c) 11 (d) 16

Techventure Academy

You might also like