Multiple choice technology programming languages

Which of the following means that in order for the conditional to happen, either x must be less than 3 or y must be greater than or equal to 4 ?

  1. if ((x < 3) && (y > 4))

  2. if (x < 3 y >= 4)

  3. if ((x < 3) || (y > = 4))

  4. if ((x > 3) || (y < = 4))

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The expression using the logical OR operator (||) matches the requirement "either x < 3 or y >= 4." The && version requires both, the malformed syntax lacks an operator, and the last option reverses the inequality, making them wrong.