Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.
Fun, engaging games to boost memory, math fluency, typing speed, and English skillsβperfect for learners of all ages.
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 mock test.
Test your understanding with targeted questions related to the topic.
Question 1
Easy
Write a for loop to print numbers from 1 to 10.
π‘ Hint: Remember to start from 1 and go up to 10.
Question 2
Easy
Modify the loop to print even numbers from 2 to 20.
π‘ Hint: Think about how you can skip odd numbers.
Practice 4 more questions and get performance evaluation
Engage in quick quizzes to reinforce what you've learned and check your comprehension.
Question 1
What does a for loop do in programming?
π‘ Hint: Think about the purpose of loops.
Question 2
True or False: A for loop can iterate through an array.
π‘ Hint: Recall how we've used for loops with arrays in class.
Solve 2 more questions and get performance evaluation
Push your limits with challenges.
Question 1
Using a for loop, write a program to print a triangle of asterisks where the number of rows is provided by the user.
π‘ Hint: You will need a nested loop to manage the number of asterisks in each row.
Question 2
Create a for loop that reverses a string provided by the user and prints it.
π‘ Hint: You will iterate from the end of the string to the beginning.
Challenge and get performance evaluation