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 53 views
Question Info
#24254Q ID
EasyDifficulty
ICSE Computer Application - Class X - 2025 SPECIMEN QUESTION PAPERTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A +
  • B %
  • C -
  • D *
Correct Answer: Option B

Explanation

Step 1: Recall Java operator precedence (high → low)

  1. %, *, / (multiplicative operators)

  2. +, - (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) %

Share This Question

Challenge a friend or share with your study group.