Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
Write a simple if statement to print 'You are an adult' if age is above 18.
Think about the condition that defines adulthood.
Create an if-else statement to check if it is raining.
Consider what action to take based on the weather.
What does an if statement do?
Remember what happens when the condition evaluates.
True or False: The else clause can be used without an if statement.
Think about how else relates to if.
Create a program that determines what to wear based on weather conditions (sunny, rainy, cold).
Think about layering for cold and rain protection.
Write an eligibility checker for multiple jobs based on age, experience, and qualifications.
Consider what each job requires for eligibility.
6 more questions in this section. Enroll free to practise them all.
Enroll free