AP CSA Unit 2: Selection and Iteration
Unit 2: Selection and Iteration focuses on how Java programs make decisions, repeat instructions, and implement algorithms. The current College Board framework includes 12 topics, covering Boolean expressions, selection statements, loops, algorithms, nested iteration, and informal run-time analysis.
Unit 2 has an approximate 25–35% AP Exam weighting. Use the practice sections below to strengthen your ability to trace Java code, evaluate conditions, follow loop execution, and analyze algorithms.
Need personalized help with AP CSA? Work directly with an AP CSA Tutor . For free-response preparation, visit the AP CSA FRQ Practice Hub.
Selection & Boolean Logic
Topics 2.1–2.6 introduce algorithms using selection and repetition, Boolean expressions, if statements, nested if statements, compound Boolean expressions, and comparison of Boolean expressions.
&&, ||, and !.Loops & Algorithms
Topics 2.7–2.10 focus on while loops, for loops, selection and iteration algorithms, and algorithms that process String data.
Nested Iteration & Informal Run-Time Analysis
Topics 2.11–2.12 extend iteration to nested loops and introduce informal reasoning about how the amount of work performed by an algorithm changes as its input grows.
Unit 2 Practice Assessment
Frequently Asked Questions About AP CSA Unit 2
What is Unit 2 of AP Computer Science A?
Unit 2 is Selection and Iteration. It covers Boolean expressions, selection statements, loops, algorithms, nested iteration, and informal run-time analysis.
How much of the AP CSA exam does Unit 2 cover?
The current College Board course framework assigns Unit 2 an approximate AP Exam weighting of 25–35%.
How many topics are in AP CSA Unit 2?
The current College Board framework includes 12 topics, numbered 2.1 through 2.12.
Are all Unit 2 topics available for MCQ practice?
Not yet. This page shows the complete current Unit 2 topic structure. Topics marked Practice Available currently have relevant practice material, while topics marked Coming Soon will be added as new practice content is developed.
What should I practice first in Unit 2?
Start with Boolean expressions and then work through while loops, for loops, algorithms, String algorithms, and nested iteration. As additional selection topics are added, they can be practiced directly from this Unit 2 hub.
Need Help With AP Computer Science A?
Get personalized AP CSA guidance, code-tracing practice, and targeted preparation with 1-on-1 tutoring.
AP CSA 1-on-1 Tutoring