3. Algorithms and Programming

Conditionals — Quiz

Test your understanding of conditionals with 5 practice questions.

Read the lesson first

Practice Questions

Question 1

What does a conditional in a program do?

Question 2

In many programming languages, what is the purpose of an $if$ statement?

Question 3

Which situation is the best example of using a conditional?

Question 4

What is the result of the condition $5 > 2$?

Question 5

Which statement best describes an $else$ block?