Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What will the expression 5 == 5 evaluate to?
Think about what equality means.
Is 7 != 10 true or false?
Look for whether the two numbers are the same.
What does the != operator do?
Think of it as the opposite of equality!
If x = 15 and y = 10, what does x > y evaluate to?
Compare the two numbers carefully.
Write a code snippet using relational operators to compare three numbers and print out the largest one.
Consider using nested `if` statements.
Create a boolean expression to check if x is between 10 and 20 using relational operators.
Think of how you can combine conditions to define a range.
6 more questions in this section. Enroll free to practise them all.
Enroll free