Practice - Control flow
Practice Questions
Test your understanding with targeted questions
Write an if statement that checks if x is greater than 5.
💡 Hint: Remember the structure of if statement!
Create a for loop that prints numbers 1 through 3.
💡 Hint: Use a simple increment and the disp function.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What does the if statement do?
💡 Hint: Think about what happens in a decision-making process.
True or False: The for loop executes based on a condition being true.
💡 Hint: Consider how control flow differs in loops.
1 more question available
Challenge Problems
Push your limits with advanced challenges
Write a program that determines if a number is prime using an if statement and loops.
💡 Hint: Think about how to identify factors of a number.
Develop a script that generates a multiplication table for numbers 1 through 5 using nested loops.
💡 Hint: You need to repeat the outer loop for each number while multiplying with each in the inner loop.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.