ExamVeda
Login
Home
31
What is the result of 3 + 2 * 4 ** 2 ?
Discuss
Answer & Solution
Answer: Option B
Solution:
Exponentiation has higher precedence, so 4 ** 2 is evaluated first, then multiplication and addition follow.
32
What is the result of 2 * (3 + 4) ?
Discuss
Answer & Solution
Answer: Option A
Solution:
Parentheses have the highest precedence, so the expression inside them is evaluated first.
33
What is the value of the following expression?
2+4.00, 2**4.0
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
34
What is the result of 2 ** 3 % 3 ?
Discuss
Answer & Solution
Answer: Option C
Solution:
Exponentiation has higher precedence, so 2 ** 3 is evaluated first, then modulo.
35
What is the value of the following expression?
float(22//3+3/3)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
36
What is the result of 10 / (2 + 3) ?
Discuss
Answer & Solution
Answer: Option B
Solution:
Parentheses have the highest precedence, so the expression inside them is evaluated first.
37
Which among the following list of operators has the highest precedence?
+, -, **, %, /, <<, >>, |
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
38
What are the values of the following Python expressions?
2**(3**2)
 (2**3)**2
 2**3**2
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
39
Which of the following expressions results in an error?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
40
What is the result of 5 / 2 // 2 ?
Discuss
Answer & Solution
Answer: Option C
Solution:
Division and floor division have the same precedence and are evaluated left to right.