MCQ
What will be the result of the expression 10 + 5 % 2 in JavaScript?
Unit-3 Programming Fundamentals
A 7
B 15
C 11
D 12
Explanation

The % operator has higher precedence than +, so 5 % 2 = 1 and then 10 + 1 = 11.