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?
- A.
NOT → BRACKETS → AND → OR
- B.
NOT → AND → OR → BRACKETS
- C.
NOT → OR → AND → BRACKETS
- D.
BRACKETS → NOT → AND → OR
Attempted by 348 students.
Show answer & explanation
Correct answer: D
By operator precedence, expressions inside brackets are evaluated first, followed by NOT, then AND, and finally OR.