Quiz on Arithmetic Operators in Python
Q.1. What is the correct operator for (x^y)?
Q.2. What is the answer to this expression, 22 % 3 is?
Q.3. Which one of these is floor division?
Q.4. The expression int(x) implies that the variable x is converted to integer.
Q.5. Operators with the same precedence are evaluated in which manner?
Q.6. What is the order of precedence in python?
i) Exponential
ii) Multiplication
iii) Parentheses
iv) Division
v) Addition
vi) Subtraction
i) Exponential
ii) Multiplication
iii) Parentheses
iv) Division
v) Addition
vi) Subtraction
Q.7. What is the output of the following code
x = 6
y = 2
print(x ** y, x // y)
Q.8. Which one of the following has the same precedence level?
Q.9. What is the output of this expression, 3*1**3?
Q.10. What is the output of
print(10 - 4 * 2)
Q.11. What is the output of
print(2%6)
Q.12. What is the output of the expression
print(-18 // 4)
Q.13. What is the output of
print(2**4 + (5 + 5)**(1 + 1))
Q.14. What is the value of the expression 100 / 25?
Q.15. What is the output of
print(2 ** 3 ** 2)
Instructions:-
- This Quiz is based on Arithmetic Operators in Python
- Each correct answer will carry 2 points
- Once an option is selected you cannot select any other, So choose wisely
- Do not refresh the page as it will reset the quiz
- Once the time is up the quiz will automatically get submitted with no of Question responded
- Your total score alongwith your name will be shown after submission of the Quiz
- Wish you ALL THE BEST 👍👍
START
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP