MCQ Practice Single Best Answer Topic: ICSE Computer Application - Class X - 2025 SPECIMEN QUESTION PAPER

Q Identify the operator that gets the highest precedence while evaluating the given expression:
a + b % c * d - e

Question ID
#24254
Subchapter
ICSE Computer Application - Class X - 2025 SPECIMEN QUESTION PAPER
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A +
  • B %
  • C -
  • D *
Correct Answer: 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

Share this MCQ with your friends or study group.