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.
- or, and, !=, -, *
- %, ^, /, ==
- *, +, !=, or, and
- ^, *, -, >, 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