Question 32

What is the correct order of execution of logical operators present in an expression ?

  1. ANOT BRACKETS AND OR
  2. BNOT AND OR BRACKETS
  3. CNOT OR AND BRACKETS
  4. DBRACKETS NOT AND OR
Show answerHide answer

Correct answer: (D) BRACKETS NOT AND OR

Explanation

Brackets are evaluated first. Among the logical operators, NOT has the highest precedence, then AND, then OR.

From DSSSB TGT Computer Science Practice Set 1

This is question 32 of DSSSB TGT Computer Science Practice Set 1. 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.