Question Bank · Unit 1
AP® Computer Science A Using Objects and Methods Practice Questions
Work through AP Computer Science A practice questions on Using Objects and Methods, then check each answer against a worked solution.
Free · no sign-up
Open questions need no account. Sign up or log in to open the rest.
All 776
Multiple choice 681
Free response 95
Which statement uses the variables below to…
Sign up now. It's free!
See the full question with its answer and worked solution.
What visible output does this statement produce? Ignore the final…
Sign up now. It's free!
See the full question with its answer and worked solution.
An audio clip lasts 2 minutes and 45 seconds. The code below incorrectly stores 2.0 in duration. Which replacement for the last line correctly…
Sign up now. It's free!
See the full question with its answer and worked solution.
A shipping program packs items into boxes that each hold capacity items. Both variables are int, with 1 <= items <= 1000 and 1…
Sign up now. It's free!
See the full question with its answer and worked solution.
The following code appears inside a method. Which outcome is…
Sign up now. It's free!
See the full question with its answer and worked solution.
An order contains 4 items costing 7 credits each, plus a single shipping charge of 3 credits. The program prints 49 instead of the intended total 31. Which…
Sign up now. It's free!
See the full question with its answer and worked solution.
The int variables completed and total satisfy 0 <= completed <= total <= 1000 and total > 0. A progress indicator should store the percentage…
Sign up now. It's free!
See the full question with its answer and worked solution.
A temperature converter uses the formula Fahrenheit = (9/5) × Celsius + 32, where the fraction represents real-number…
Sign up now. It's free!
See the full question with its answer and worked solution.
A display should rotate three stored counts: red receives the original blue count, blue receives the original green count, and green receives the original red…
Sign up now. It's free!
See the full question with its answer and worked solution.
The int variable badge is a four-digit positive number (1000 through 9999). A machine removes the hundreds digit and keeps the other digits…
Sign up now. It's free!
See the full question with its answer and worked solution.
Page 63 of 78
Get your FRQs graded in the Student Portal
In the Verityprep Student Portal, answer the FRQs of AP practice and past exams by typing or uploading a photo. A teacher grades them with that year's official College Board scoring guidelines and gives you an estimated 1–5 score.
Join Verityprep now
AP® and Advanced Placement® are registered trademarks of the College Board, which is not affiliated with, and does not endorse, Verityprep. Names are used for identification purposes only.