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 IF statement do?
Think about decision-making in programming.
Write an example of a simple IF statement.
Use your own variable to test.
What is the primary function of an IF statement?
Remember its role in decision-making.
TRUE or FALSE: A WHILE loop requires a known number of iterations.
Focus on the definition of WHILE.
Develop a program that uses both IF and FOR loops to count and determine if the numbers between 1 and 10 are odd or even. What should be printed?
Use modulo for checking evenness.
Create a WHILE loop that continues to subtract from a number until it reaches zero, printing each step.
Watch how the condition changes with each iteration.
4 more questions in this section. Enroll free to practise them all.
Enroll free