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
What does the if
statement do?
π‘ Hint: Think of it as a yes/no question.
Question 2
Easy
What will the following code print? int i = 2; if (i > 1) { System.out.println('Greater'); }
π‘ Hint: Is 2 greater than 1?
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 is the purpose of a conditional statement?
π‘ Hint: Consider when you need to perform different actions based on conditions.
Question 2
True or False: A while
loop executes its code block at least once.
π‘ Hint: Think about when the loop's condition is evaluated.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Write a function that takes an integer and uses a loop to return the factorial of that number.
π‘ Hint: What do you multiply together to get a factorial?
Question 2
Using a switch
statement, create a program that outputs a user's rating for a movie based on their input: 1 for bad, 2 for average, 3 for good, and 4 for excellent.
π‘ Hint: How can you match each rating to a specific message?
Challenge and get performance evaluation