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.
What does an if statement do?
Think about decision-making.
What is the purpose of a break statement in a loop?
Consider when you want to stop the loop.
What does an if-else statement do?
Remember that it has two branches.
True or False: A while loop checks its condition after the loop body executes.
Think about the sequence of operations.
Write a program that simulates a simple grading system based on user input. Use control structures to determine the grade: A, B, C, or Fail.
Consider marking ranges for each grade.
Create a pattern printing program using nested loops that print a pyramid shape.
Think about how many spaces and stars are needed for each row.
5 more questions in this section. Enroll free to practise them all.
Enroll free