CodeHS - AP CSA Midterm (Unit 1 & 2) - Questions and Solutions
AP CSA Cortado Midterm – Units 1–2
40-question multiple-choice practice for the CodeHS AP CSA Cortado curriculum, covering Unit 1: Using Objects and Methods and Unit 2: Selection and Iteration for the 2025 AP Computer Science A course.
Unit 1: Using Objects & Methods Unit 2: Selection & Iteration Topics: Strings, Math, APIs, Boolean Logic, Loops
This midterm-style exam mirrors the Cortado topic sequence: variables and data types, expressions, casting, String methods, the Math class, APIs & documentation, method calls, and object references (Unit 1), plus boolean expressions, if / else, nested selection, while and for loops, basic string algorithms, and informal run-time reasoning (Unit 2).
Select the best answer for each question, then click Submit Midterm to see your score, an estimated AP score, and detailed explanations.