8.2.2 - Control Flow Statements
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What is a control flow statement?
💡 Hint: Think about how your program can make decisions.
Give an example of a conditional statement.
💡 Hint: Consider the if-else condition.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
Which of the following is NOT a control flow statement?
💡 Hint: Think about which options directly control execution.
True or False: The continue statement can be used to exit a loop.
💡 Hint: Remember the purpose of the continue statement.
1 more question available
Challenge Problems
Push your limits with advanced challenges
Create a program that takes an integer from the user and prints whether it's positive, negative, or zero using if-else statements.
💡 Hint: Use nested ifs to break down the conditions.
Write a program using a for loop that finds and prints all prime numbers between 1 and 100.
💡 Hint: Think about how to check for factors efficiently.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.