Control Flow Quiz

Complete this assessment with 100% score to master this chapter.

01What will 'if (0)' evaluate to?

02Which statement is used for comparing one variable against many exact values?

03In a switch statement, what happens if you forget the 'break' keyword after a case?

04What is the ternary operator syntax for: if age >= 18 return 'adult', otherwise return 'minor'?

05What is the main benefit of using a guard clause in a function?