Chapter 2
Control Flow — quiz
5 questions · ~4 min
Chapter 2 quiz
Question 1 of 5
Your dashboard test verifies that, depending on the user's role, different widgets render. Admin sees Reports, Member sees Profile, Guest sees a banner. Which control flow construct best fits when branching on a single discrete value with several cases?