Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is the outcome of the expression 5 != 3?
Think about the definition of inequality.
Is 10 >= 10 true or false?
Consider the meaning of 'greater than or equal to'.
What do relational operators return?
Think about the outcome of comparing two values.
True or False: The && operator returns true if either condition is true.
Recall the definition of the AND operator.
Write a single expression using both relational and logical operators that evaluates to true when both used numbers are even and less than 100.
Think about modulus to check if numbers are even.
Create a logical expression that uses 'NOT' to reject any number greater than 50 from a boolean result.
Negate the condition to form your expression correctly.
5 more questions in this section. Enroll free to practise them all.
Enroll free