AP CSA Unit 4: Data Collections — Course Hub

AP CSA · Unit 4 · 17 Lessons

Unit 4: Data Collections

The largest and most heavily tested unit on the AP exam. Master arrays, ArrayLists, 2D arrays, searching, sorting, and recursion — plus the ethical and practical foundations of working with real data sets. Unit 4 is 30–40% of your AP score.

17 Lessons
30–40% AP Exam Weight
170+ Practice Questions
FRQ 3 & 4 Covers These FRQs

All 17 Lessons

What you'll learn in Unit 4
  • The ethical and social implications of collecting, storing, and processing data at scale
  • How to create, index, traverse, and apply algorithms to 1D arrays of primitives and objects
  • How to use ArrayList methods and traverse ArrayLists with for and for-each loops
  • How to declare, create, and traverse 2D arrays using nested loops
  • How linear search, binary search, selection sort, and insertion sort work and compare
  • How to read data from text files using File and Scanner
  • How to trace recursive methods and identify base and recursive cases

Ready to test yourself on Unit 4?

Build a custom practice exam filtered to arrays, ArrayLists, and data collections.

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]