Question 30

Which of the following operations have the highest level of precedence?

  1. A( )
  2. B+ −
  3. C* /
  4. D^ (exponentiation)
Show answerHide answer

Correct answer: (D) ^ (exponentiation)

Explanation

Among the arithmetic operators, exponentiation (^) has the highest precedence, above * and /, which are above + and −. Parentheses are grouping symbols, not operations.

From DSSSB TGT Computer Science Practice Set 4

This is question 30 of DSSSB TGT Computer Science Practice Set 4. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.