Q7. What value will be assigned to the numeric variable x when the following statement is executed? x = 2 + 3 * 4? * a) 20 b) 14 c) 92 d) 234
Answers
Answered by
0
Answer:
The answer is b) 14
Explanation:
Given statement x = 2 + 3 * 4
When both multiplication and addition is given first we must do multiplication and then addition
Therefore, given statement can be written as
x = 2 + 12 [ ∵ 3×4 =12 ]
⇒ x = 14
Therefore, numeric value of x = 14
#SPJ3
Similar questions
English,
4 months ago
English,
4 months ago
Math,
9 months ago
Physics,
1 year ago
Computer Science,
1 year ago