🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Filtering and Sorting: all 10 questions

Quiz: Filtering and Sorting · Question 5 of 10

In WHERE city = 'Pune' OR city = 'Delhi' AND salary 50000, which is evaluated first?

In WHERE city = 'Pune' OR city = 'Delhi' AND salary > 50000, which is evaluated first?

  1. A.OR
  2. B.AND
  3. C.Left to right
  4. D.It's an error
Answer & explanation

Correct answer: AND

AND binds tighter than OR. Use brackets to make the meaning clear.

Can you get the rest right without peeking?

Take the timed Quiz: Filtering and Sorting quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →