Vidyalelo
C# Programming · Q20

Operators and Expressions in C Sharp

Programming · C# Programming · question 20

Q20

What is the result of the expression (10 - 3) * 2 + 7 in C#?

A.
20
B.
27
C.
29
D.
24
E.
None of above
Answer

Answer: Option E

Solution

Answer: Option E
Solution:
Step 1: Evaluate the expression inside the parentheses

(10 - 3) = 7

Step 2: Multiply the result by 2

7 * 2 = 14

Step 3: Add 7 to the result

14 + 7 = 21

Final Result: 21

Since 21 is not listed among the options A to D, the correct answer is:

Option E: None of above