Loading…
Loading…
A 20-question mixed review of OCP Java 21 Chapter 3: if/else and pattern matching with flow scoping, switch statements and expressions, pattern switches with guards and null, record patterns, loops, break, continue, labels and unreachable code.
A mixed review of Chapter 3: Making Decisions. Take it after finishing the chapter, from if/else and pattern matching for instanceof to break, continue, labels and unreachable code.
Several questions combine rules from different articles, as the real exam does. All questions follow Java 21 rules. Aim for at least 15 out of 20 (75%) before moving on to Chapter 4.
Quiz path: step 18. Take the quizzes in this order, after reading each article.
Previous quiz: break, continue, Labels and Unreachable Code (OCP 21)
20 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.