PCA (Prometheus Certified Associate) sample exam question with answer 76

Question:
Select the following option where the binary query operators decrease from highest to lowest precedence.

  1. or, and, !=, -, *
  2. %, ^, /, ==
  3. *, +, !=, or, and
  4. ^, *, -, >, and, or
Answer:
D - is the correct answer. Binary pperator precedence
A - order is reversed
B - is incorrect as exponentiation (^) has the highest precedence
C - is incorrect as and has a higher precedence than or