EXAMINATION DOCUMENT 2026/2027
C169 Introduction to Programming in Java
Exam 2 2026/2027 - Control Structures
Loops Methods Mastery - 210 Q&A; - A+
Graded - Latest Update This Year - Just
Released - Verified Solutions - Pass
Guaranteed
★ A+ VERIFIED ★
WGU C169 | Control Structures, Loops & Methods | 2026/2027 Edition | 210 Questions
Premium Study Guide • Control Loops • Methods • Exam Prep • Latest Update • Pass Guaranteed
,TABLE OF CONTENTS - C169 Exam 2: Control Structures, Loops
& Methods Mastery
Section 1: Conditional Branching Deep Dive - If-Else Logic & Boolean Evaluation Matrix
Q1-35 .... Page 3
Section 2: Switch Statement Proficiency - Fall-Through, String & Enum Handling Patterns
Q36-70 .... Page 24
Section 3: Iterative Control Mastery - For, While & Do-While Execution Tracing Lab Q71-105
.... Page 46
Section 4: Loop Interruption Techniques - Break, Continue & Labeled Loops Control
Q106-135 .... Page 68
Section 5: Method Architecture Essentials - Parameters, Return Types & Pass-By-Value
Deep Dive Q136-175 .... Page 86
Section 6: Advanced Method Design - Overloading Resolution & Variable Scope Lifetime
Analysis Q176-210 .... Page 108
Appendix A: C169 Control Structures Quick Reference Matrix - Latest 2026 Update Revision
.... Page 130
Appendix B: Verified Solutions Index & Answer Key Distribution Analysis - A+ Graded
System .... Page 131
Exam Number: 2 | Focus: if else switch, for while do-while loops, break continue, methods, parameters, return
types, scope, overloading | 210 Q&A; Fixed | A+ Graded
,1. Q1. [If-Else Focus] What is the output of: int x=4; if(x>5) System.out.print("A"); else if(x>3)
System.out.print("B"); else System.out.print("C"); with additional boolean trace for iteration 1
involving && and || short-circuit? Code Trace #1
A. Else always executes regardless of condition; dangling else causes compile error
B. Executes else block only when if condition is false and else-if chain fails; else binds to nearest if; boolean
must be boolean type
C. If condition must be int type; short-circuit || evaluates both sides always
D. If statement in Java can accept any type as condition, including int like C, and else executes only if
condition equals 2
Correct Answer: B
Rationale: This question tests conditional branching with if-else and boolean logic in Java C169. The correct choice is B
because Java conditional branching with if-else and boolean logic requires understanding of control flow and method
mechanics. In Java, conditional branching with if-else and boolean logic follows specific execution rules defined by the Java
Language Specification. The distractors represent common misconceptions like misunderstanding scope lifetimes or
confusing when break exits only the innermost loop versus switch. Mastery ensures predictable program behavior, proper
return handling, and avoids logical errors on the WGU objective assessment. Students must trace execution manually to
verify the correct path and apply method overloading rules accurately.
2. Q2. [If-Else Focus] What is the output of: int x=5; if(x>5) System.out.print("A"); else if(x>3)
System.out.print("B"); else System.out.print("C"); with additional boolean trace for iteration 2
involving && and || short-circuit? Code Trace #2
A. Else always executes regardless of condition; dangling else causes compile error
B. If condition must be int type; short-circuit || evaluates both sides always
C. Executes else block only when if condition is false and else-if chain fails; else binds to nearest if; boolean
must be boolean type
D. If statement in Java can accept any type as condition, including int like C, and else executes only if
condition equals 2
Correct Answer: C
Rationale: Correct answer C is validated for the 2026/2027 C169 exam because conditional branching with if-else and
boolean logic operates under Java's strict type checking and control flow. The other choices reflect common WGU student
errors such as forgetting that for-loop initialization executes once, while condition checks each iteration, or believing
overloaded methods are distinguished by return type alone. This rationale explains that proper use of conditional branching
with if-else and boolean logic leads to maintainable code, correct method resolution at compile time, and prevents runtime
logic failures. Reviewing this reinforces core competencies needed for control structures and methods mastery.
, 3. Q3. [If-Else Focus] What is the output of: int x=6; if(x>5) System.out.print("A"); else if(x>3)
System.out.print("B"); else System.out.print("C"); with additional boolean trace for iteration 3
involving && and || short-circuit? Code Trace #3
A. Else always executes regardless of condition; dangling else causes compile error
B. If condition must be int type; short-circuit || evaluates both sides always
C. If statement in Java can accept any type as condition, including int like C, and else executes only if
condition equals 2
D. Executes else block only when if condition is false and else-if chain fails; else binds to nearest if; boolean
must be boolean type
Correct Answer: D
Rationale: Correct answer D is validated for the 2026/2027 C169 exam because conditional branching with if-else and
boolean logic operates under Java's strict type checking and control flow. The other choices reflect common WGU student
errors such as forgetting that for-loop initialization executes once, while condition checks each iteration, or believing
overloaded methods are distinguished by return type alone. This rationale explains that proper use of conditional branching
with if-else and boolean logic leads to maintainable code, correct method resolution at compile time, and prevents runtime
logic failures. Reviewing this reinforces core competencies needed for control structures and methods mastery.
4. Q4. [If-Else Focus] What is the output of: int x=7; if(x>5) System.out.print("A"); else if(x>3)
System.out.print("B"); else System.out.print("C"); with additional boolean trace for iteration 4
involving && and || short-circuit? Code Trace #4
A. Executes else block only when if condition is false and else-if chain fails; else binds to nearest if; boolean
must be boolean type
B. Else always executes regardless of condition; dangling else causes compile error
C. If condition must be int type; short-circuit || evaluates both sides always
D. If statement in Java can accept any type as condition, including int like C, and else executes only if
condition equals 2
Correct Answer: A
Rationale: This question tests conditional branching with if-else and boolean logic in Java C169. The correct choice is A
because Java conditional branching with if-else and boolean logic requires understanding of control flow and method
mechanics. In Java, conditional branching with if-else and boolean logic follows specific execution rules defined by the Java
Language Specification. The distractors represent common misconceptions like misunderstanding scope lifetimes or
confusing when break exits only the innermost loop versus switch. Mastery ensures predictable program behavior, proper
return handling, and avoids logical errors on the WGU objective assessment. Students must trace execution manually to
verify the correct path and apply method overloading rules accurately.