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.
Write a simple if statement to check if a number is positive.
Think about comparing the number to 0.
Create an if statement to determine if a user can vote based on age.
Focus on the voting age which is 18.
What does the if statement do?
Remember the role of the if statement in decision-making.
The else statement executes when:
Think about what happens when the if statement's condition doesn't hold.
Write a program that checks a student's age, grade, and scores multiple subjects to recommend further studies based on the highest score.
Start from checking if the age meets a threshold before tabulating scores.
Create a program that uses multiple conditions to determine eligibility for a job based on years of experience, skill level, and education.
You can use mixed conditions that check experience and education as your major qualifiers.
7 more questions in this section. Enroll free to practise them all.
Enroll free