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.

Questions 91–95 of 95
  1. 91
  2. 92
  3. 93
  4. 94
  5. 95

Question 91

Free response Using Objects
This problem involves writing methods that examine a password for security requirements. The declaration of the PasswordChecker class is shown below. public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 92

Free response Using Objects
This problem involves writing methods that format and inspect a sentence. The declaration of the TextFormatter class is shown below. public class TextFormatter…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 93

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 94

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 95

Free response Using Objects
This question involves parts used to assemble toy vehicles. Each toy vehicle is assembled using one base and either two or four wheels. The following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 91 of 95
Page 10 of 10