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 positive.
What do you compare the number against?
Create a FOR loop to print the first five letters of the alphabet.
What string contains the letters?
What does an IF statement do?
Think about how decisions are made in programming.
True or False: A FOR loop can run forever.
Consider how the iterations are controlled.
Create a program that takes user input until a specific answer is given, implementing both IF and WHILE logic.
What condition will let you exit the loop?
Write a program that categorizes numbers into positive, negative, or zero using nested IF statements within a WHILE loop.
What iterative method will keep asking for input until you break out?
6 more questions in this section. Enroll free to practise them all.
Enroll free