MCQ
Single Best Answer
Easy
QIdentify the operator that gets the highest precedence while evaluating the given expression:
a + b % c * d - e
ID: #24254
ICSE Computer Application - Class X - 2025 SPECIMEN QUESTION PAPER
52 views
Question Info
#24254Q ID
EasyDifficulty
ICSE Computer Application - Class X - 2025 SPECIMEN QUESTION PAPERTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option B
Explanation
Step 1: Recall Java operator precedence (high → low)
-
%,*,/(multiplicative operators) -
+,-(additive operators)
Step 2: Order in given expression
-
b % c→ modulus first -
Then multiply
* d -
Then addition
+ a -
Finally subtraction
- e
Step 3: Among given options
-
+→ lower precedence -
%→ higher precedence -
-→ lower precedence -
*→ same precedence as%, but evaluation happens left-to-right
👉 *So the highest precedence operator in this expression is %.
✅ Answer: (b) %
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic