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

2022

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

Answer: D. BRACKETS → NOT → AND → ORBy operator precedence, expressions inside brackets are evaluated first, followed by NOT, then AND, and finally OR.

  1. A.

    NOT → BRACKETS → AND → OR

  2. B.

    NOT → AND → OR → BRACKETS

  3. C.

    NOT → OR → AND → BRACKETS

  4. D.

    BRACKETS → NOT → AND → OR

Attempted by 492 students.

Show answer & explanation

Correct answer: D

By operator precedence, expressions inside brackets are evaluated first, followed by NOT, then AND, and finally OR.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…