What would you like to understand?

Popular destinationsCalculatorsCoursesPracticeFormulas

Unlock Premium Help

Explore every tutor and study workspace for seven days, with no daily AI cap during the trial.

Choose a billing period
Ask a parent to pay

Nothing is charged during the first seven days. Unless you cancel, the plan you selected begins when the trial ends and renews on its stated schedule. Manage cancellation from your plan page. Stripe handles the payment details.

AP CS A Practice Questions with Worked Answers

Use a short diagnostic to expose the first decision that needs repair.

Decision-focused diagnostic

Answer from your current habits. The feedback points to a stronger exam-preparation move.

Question 1 of 3

How many times does `for (int i = 0; i < 5; i++)` execute?

Selection and Iteration. Best move: $5$

The loop runs for $i=0,1,2,3,4$, which is five iterations.

For object references `a` and `b`, what does `a == b` test?

Objects. Best move: Whether they refer to the same object

For object references, `==` tests reference identity, not equal field values.

After `list.add(x)` successfully appends one element to an `ArrayList`, how does its size change?

Data Collections. Best move: It increases by one

Appending one element increases the list's size by one.

Questions about AP Computer Science A exam practice

How many questions are on the AP Computer Science A exam?

The published format is 42 questions on multiple choice and 4 questions on free response. Multiple choice - About 2.1 minutes each. Code-tracing items take longer than vocabulary items, so move fast on the short ones. Free response - About 22 minutes each. Write the method header first, then the return statement, then fill in the middle.

Which AP Computer Science A units should I practise first?

Start with the heaviest published weightings: Data Collections (30–40%), Selection and Iteration (25–35%), Using Objects and Methods (15–25%). Then repair whichever earlier unit those depend on.

Can I use a calculator while I practise for AP Computer Science A?

Only where the exam allows one, and practising otherwise builds the wrong habit. Multiple choice: Arithmetic here is integer division and remainders you can do in your head. Free response: You write Java by hand on the exam. Practise without autocomplete or a compiler. Provided for the whole exam: String, Math, ArrayList, and Object methods are listed. Anything not on that sheet, you must remember.

What is the most common way students lose points on AP Computer Science A?

Off-by-one errors on bounds. Arrays use .length, Strings use .length(), and ArrayLists use .size() - And valid indexes stop one below each of them.

Turn one weak area into the next session.

Plan with the tutor →