Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods FRQ

Work through AP Computer Science A free-response 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.

Subtopic: Primitive Types Clear filter

Questions 1–3 of 3
  1. 1
  2. 2
  3. 3

Question 1

Free response Primitive Types
A mathematical sequence is an ordered list of numbers. This question involves a sequence called a hailstone sequence. If \(n\) is the value of a term in the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2

Free response Primitive Types
This question simulates the discharge of a phone battery as apps are used over the course of a day. The following BatterySimulator class tracks the current…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 3

Free response Primitive Types
This question involves a multi-floor parking garage where vehicles can occupy a single spot or a block of consecutive spots. Each floor of the garage has 30…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1 of 3