ExamVeda
Login
Home
11
What is the result of (5 - 2) * 2 ?
Discuss
Answer & Solution
Answer: Option C
Solution:
Parentheses have the highest precedence, so the expression inside them is evaluated first.
12
What is the result of 10 / 2 / 5 ?
Discuss
Answer & Solution
Answer: Option A
Solution:
Division has left-to-right associativity, so the result is 0.5.
13
What will be the value of x in the following Python expression?
x = int(43.55+2/2)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
14
What is the result of (8 - 4) * 2 / 4 ?
Discuss
Answer & Solution
Answer: Option B
Solution:
Parentheses have the highest precedence, so the expression inside them is evaluated first.
15
What is the value of the following expression?
8/4/2, 8/(4/2)
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
16
What will be the value of the following Python expression?
4 + 3 % 5
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
17
What is the result of 3 + 2 * (5 - 3) ?
Discuss
Answer & Solution
Answer: Option C
Solution:
Parentheses have the highest precedence, so the expression inside them is evaluated first.
18
What is the result of 10 + 2 * 6 / 3 ?
Discuss
Answer & Solution
Answer: Option A
Solution:
Multiplication and division have the same precedence and are evaluated left to right.
19
What is the result of 4 * 3 % 5 ?
Discuss
Answer & Solution
Answer: Option A
Solution:
Multiplication and modulo have the same precedence and are evaluated left to right.
20
What will be the value of X in the following Python expression?
X = 2+9*((3*12)-8)/10
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board