Eggzams / AP exam practice questions / AP Computer Science A

Advanced Placement (AP)

AP Computer Science A practice questions, by topic

Eggzams has 366 original AP Computer Science A questions for the AP exam, organised into 4 topics. Topics include Using Objects and Methods, Selection and Iteration, Class Creation and Data Collections. Every question has an explanation after you answer, so a wrong answer becomes a mini-lesson.

Download on theApp Store Get it onGoogle Play

Sample AP Computer Science A questions

Here is the kind of question you will get, with the explanation that follows every answer. These are free in the app.

AP Computer Science A · Data Collections
Which of the following correctly declares an array of 3 boolean values, all set explicitly to true using array literal syntax?
Java's array literal syntax uses curly braces containing comma-separated values matching the declared type: 'boolean[] flags = {true, true, true};' correctly creates and initializes a 3-element boolean array.
AP Computer Science A · Using Objects and Methods
What is the value of the expression 5 + 3 + "cats" in Java?
Java evaluates left to right: 5 + 3 (both numeric) equals 8 first (since neither is a String yet), and then 8 + "cats" concatenates the resulting integer with the string, producing "8cats".
AP Computer Science A · Using Objects and Methods
Which of the following correctly represents scientific notation for the double value 150000.0 in Java?
Java supports scientific notation for double literals using 'e' followed by the exponent, so 1.5e5 represents 1.5 × 10^5, which equals 150000.0.

Topics covered: 4 topics, 366 questions

AP Computer Science A on Eggzams is split into the topics below, so you can drill exactly the part you find hardest instead of working through a textbook in order. Each topic has its own progress tracker.

  1. Using Objects and Methods
  2. Selection and Iteration
  3. Class Creation
  4. Data Collections

How to practise AP Computer Science A with Eggzams

Pick one topic, answer a short run of questions, and read the explanation after every answer, right or wrong. Repeat the topics where your accuracy is lowest. Questions come in easy, medium and hard, so you can build up in each topic and see the difficulty rise as you improve.

Try 5 questions in every topic, free

Create a free account to start. One $9.99 payment unlocks everything, with no subscription, ever.

Frequently asked

How many AP Computer Science A practice questions does Eggzams have?

366 original questions across 4 topics, each with an explanation.

Are these real AP Computer Science A past paper questions?

No. Every question is written from scratch and checked against the current syllabus. Eggzams never copies or reproduces past exam papers.

Is AP Computer Science A practice free?

The first 5 questions in every topic are free once you create a free account. A one-time payment of $9.99 unlocks everything in the app, with no subscription.

Is Eggzams affiliated with the College Board?

No. Eggzams is an independent study aid, not affiliated with, authorised by, or endorsed by the College Board.

Also studying for other subjects?