Vidyalelo
Python · all questions

Python Operator Precedence: MCQs for Exam Prep
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

50

Questions

2/3

Page

Pick an option on a question to see the right answer and solution.

What is the result of 3 + 4 * 5 ?

Select an option to see the answer and solution.

What is the result of (2 + 3) * 4 ?

Select an option to see the answer and solution.

What is the result of (2 + 3) * (5 - 1) ?

Select an option to see the answer and solution.

Which of the following operators has its associativity from right to left?

Select an option to see the answer and solution.

What will be the value of the following Python expression?
float(4+int(2.39)%2)

Select an option to see the answer and solution.

What is the result of 8 / 2 ** 2 ?

Select an option to see the answer and solution.

What is the result of 4 + 3 ** 2 % 2 ?

Select an option to see the answer and solution.

What is the result of 2 ** 3 * 4 ?

Select an option to see the answer and solution.

The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.

Select an option to see the answer and solution.

Which of the following expressions is an example of type conversion?

Select an option to see the answer and solution.

What is the result of 3 + 2 * 4 ** 2 ?

Select an option to see the answer and solution.

What is the result of 2 * (3 + 4) ?

Select an option to see the answer and solution.

What is the value of the following expression?
2+4.00, 2**4.0

Select an option to see the answer and solution.

What is the result of 2 ** 3 % 3 ?

Select an option to see the answer and solution.

What is the value of the following expression?
float(22//3+3/3)

Select an option to see the answer and solution.

What is the result of 10 / (2 + 3) ?

Select an option to see the answer and solution.

Which among the following list of operators has the highest precedence?
+, -, **, %, /, <<, >>, |

Select an option to see the answer and solution.

What are the values of the following Python expressions?
2**(3**2)
 (2**3)**2
 2**3**2

Select an option to see the answer and solution.

Which of the following expressions results in an error?

Select an option to see the answer and solution.

What is the result of 5 / 2 // 2 ?

Select an option to see the answer and solution.