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 Computer Science AReady

Find out what you can choose without a model.

Guided mode reveals one clue and immediate feedback. Quiet-test mode postpones the review until the complete run is submitted.

Course areas in this rehearsal

Treat the list as a dependency map. A later miss may point back to an earlier definition or representation.

Using Objects and Methods

Using Objects and Methods: Name the objects and notation before applying a rule.

Selection and Iteration

Selection and Iteration: Connect the symbolic form to a graph, diagram, table, or example.

Class Creation

Class Creation: Compare two methods and record when each one is valid.

Data Collections

Data Collections: Finish with an unfamiliar problem and an independent check.

Eight original decision checks

These fixed prompts test study and verification choices across the course map. The interactive builder above creates mathematical questions separately.

Question 1: What does "Computer".substring(2, 5) return in Java?

Using Objects and Methods

  1. "mpu"
  2. "ompu"
  3. "mput"
  4. "omp"
Inspect the reasoning
  1. Java counts string positions starting at 0.
  2. The first argument is the starting index, which is included.
  3. The second argument is the ending index, which is not included.
  4. Positions 2, 3, and 4 hold m, p, and u, so the result is "mpu".

Best choice: "mpu"

Question 2: In Java, what are the values of 17 / 5 and 17 % 5 when both operands are ints?

Using Objects and Methods

  1. 3 and 2
  2. 3.4 and 2
  3. 3 and 3.4
  4. 4 and 2
Inspect the reasoning
  1. Dividing two ints in Java performs integer division and throws away any fraction.
  2. 5 goes into 17 three whole times, so 17 / 5 is 3, not 3.4.
  3. The % operator returns the remainder.
  4. 3 x 5 = 15, and 17 - 15 = 2, so 17 % 5 is 2.

Best choice: 3 and 2

Question 3: How many times does the loop for (int i = 1; i <= 10; i += 3) run, and what is the sum of the values of i?

Selection and Iteration

  1. 4 times, sum 22
  2. 3 times, sum 12
  3. 4 times, sum 20
  4. 10 times, sum 55
Inspect the reasoning
  1. Start at i = 1 and add 3 each pass while i stays at or below 10.
  2. The values are 1, 4, 7, and 10.
  3. The next value would be 13, which fails the test, so the loop stops.
  4. That is 4 passes, and 1 + 4 + 7 + 10 = 22.

Best choice: 4 times, sum 22

Question 4: An outer loop runs 4 times and contains an inner loop that runs 3 times. How many times does the innermost statement execute?

Selection and Iteration

  1. 12
  2. 7
  3. 4
  4. 3
Inspect the reasoning
  1. The inner loop completes all of its passes during each single pass of the outer loop.
  2. So the count is outer passes times inner passes.
  3. 4 x 3 = 12.
  4. The innermost statement runs 12 times.

Best choice: 12

Question 5: What does the keyword 'this' refer to inside a Java instance method?

Class Creation

  1. The object the method was called on
  2. The class itself rather than any object
  3. The parent class of the object
  4. A copy of the object's parameters
Inspect the reasoning
  1. Every instance method runs on behalf of one particular object.
  2. 'this' is a reference to that object.
  3. It is commonly used when a parameter has the same name as an instance variable, as in this.name = name.
  4. It never refers to the class as a whole, which is what static members belong to.

Best choice: The object the method was called on

Question 6: An array holds {3, 8, 1, 9}. A loop compares each element to a running maximum that starts at the first element. What is the final value?

Data Collections

  1. 9
  2. 8
  3. 3
  4. 21
Inspect the reasoning
  1. Start with the maximum set to the first element, 3.
  2. 8 is larger than 3, so the maximum becomes 8.
  3. 1 is smaller, so nothing changes.
  4. 9 is larger than 8, so the maximum becomes 9, and that is the final answer.

Best choice: 9

Question 7: An ArrayList holds ["A", "B", "C", "D"]. What is left after calling remove(1) twice?

Data Collections

  1. ["A", "D"]
  2. ["A", "C"]
  3. ["C", "D"]
  4. ["A", "B"]
Inspect the reasoning
  1. The first remove(1) deletes "B", the element at index 1.
  2. The list shifts left and becomes ["A", "C", "D"].
  3. Index 1 now holds "C", so the second remove(1) deletes it.
  4. The list is ["A", "D"]. This shifting is a common source of bugs when removing inside a loop.

Best choice: ["A", "D"]

Question 8: How many elements does the array created by int[][] grid = new int[3][4] hold in total?

Data Collections

  1. 12
  2. 7
  3. 34
  4. 3
Inspect the reasoning
  1. The declaration makes 3 rows.
  2. Each row is an array of 4 ints.
  3. Multiply rows by columns: 3 x 4.
  4. That is 12 elements, and every one starts at the default value 0.

Best choice: 12

After the run

Sort each miss into interpretation, recall, setup, execution, verification, or pacing. Schedule a changed question that tests the corrected decision without reusing the same surface details.

When should I increase difficulty?

Increase it after setup is accurate without a clue and you can explain why the method fits.

When should I use test mode?

Use it once guided sets are stable and you want evidence about selection, pacing, and sustained attention.

All course units are eligible.

Printed question coverage
QuestionsReview
8 original promptsChoices, answer, and worked reasoning

What this AP Computer Science A rehearsal measures