Computer Science, asked by rimshu13, 9 months ago

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 Syamkumarr
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