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 an IF statement to check if a number is greater than 10.
Think about how to structure a simple decision.
What does a FOR loop allow you to do?
Consider what happens when you know how many times to repeat an action.
What does the IF statement do?
Think about how decisions are made in programming.
True or False: A FOR loop is used when the number of iterations is known.
Consider the difference between fixed and variable iterations.
Write a program that finds the largest number in a list using IF statements and a FOR loop.
Think about how to compare each number to find the largest.
Implement a WHILE loop that continues to prompt the user for a password until they enter the correct one.
Consider how to keep asking until the correct input is received.
5 more questions in this section. Enroll free to practise them all.
Enroll free