Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does the '<' operator do?
Think about comparing two numbers.
What result does '5 == 5' yield?
Remember the equal operator checks for equality.
What does the '>' operator do?
Think about finding out which number is larger.
True or False: The short-circuit OR will not evaluate the second condition if the first is true.
Consider how many checks you have to perform when finding a true result.
Create a condition that uses both relational and logical operators to check if a student's score is between 60 and 100 and if they have submitted the assignment.
Use AND for checking each condition.
Devise a logical expression that will determine if a user has access to two different features based on age and membership level.
Think of combining age and differing levels of membership.
4 more questions in this section. Enroll free to practise them all.
Enroll free