Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is a conditional statement?
Think about decision-making in programs.
What does a flag do in a program?
Consider its role in managing program flow.
What is the purpose of a conditional statement?
Think of how decisions are made in real life.
True or False: A flag can indicate whether a condition was met in a program.
Reflect on the role of flags in decision making.
Create a program that checks if a number is prime using conditional statements and flags.
Consider the conditions that define a prime number.
Devise a scenario where multiple conditions affect outcome in a user login system.
Think about the various checks an actual login system might perform.
4 more questions in this section. Enroll free to practise them all.
Enroll free