21.3.2 - Syntax
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
Write an IF statement to check if a number is positive.
💡 Hint: What do you compare the number against?
Create a FOR loop to print the first five letters of the alphabet.
💡 Hint: What string contains the letters?
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What does an IF statement do?
💡 Hint: Think about how decisions are made in programming.
True or False: A FOR loop can run forever.
💡 Hint: Consider how the iterations are controlled.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Create a program that takes user input until a specific answer is given, implementing both IF and WHILE logic.
💡 Hint: What condition will let you exit the loop?
Write a program that categorizes numbers into positive, negative, or zero using nested IF statements within a WHILE loop.
💡 Hint: What iterative method will keep asking for input until you break out?
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.