AP CSA Unit 2: Selection and Iteration

AP CSA · Unit 2 · 12 Lessons

Unit 2: Selection and Iteration

Master conditional statements and loops. Understand the control structures that form the foundation of every algorithm you’ll write in AP CSA and beyond.

12 Lessons
~30% AP Exam Weight
96+ Practice Questions

All 12 Lessons

What you’ll learn in Unit 2
  • Write boolean expressions using relational and logical operators
  • Use if, if-else, and if-else-if statements to control program flow
  • Build while and for loops to repeat code efficiently
  • Implement selection and iteration algorithms (accumulator, counter, sentinel)
  • Trace and debug complex control flow including nested structures
class="u2-cta">

Ready to test yourself?

Build a custom Unit 2 practice exam or review all AP CSA study tools.

Build a Practice Exam →

Get in Touch

Whether you're a student, parent, or teacher — I'd love to hear from you.

Just want free AP CS resources?

Enter your email below and check the subscribe box — no message needed. Students get daily practice questions and study tips. Teachers get curriculum resources and teaching strategies.

Typically responds within 24 hours

Message Sent!

Thanks for reaching out. I'll get back to you within 24 hours.

🏫 Welcome, fellow educator!

I offer curriculum resources, practice materials, and study guides designed for AP CS teachers. Let me know what you're looking for — whether it's classroom materials, a guest speaker, or Teachers Pay Teachers resources.

Email

[email protected]

📚

Courses

AP CSA, CSP, & Cybersecurity

Response Time

Within 24 hours

Prefer email? Reach me directly at [email protected]