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 71–80 of 95
  1. 71
  2. 72
  3. 73
  4. 74
  5. 75
  6. 76
  7. 77
  8. 78
  9. 79
  10. 80

Question 71

Free response Using Objects
A WordSet, whose partial implementation is shown in the class declaration below, stores a set of String objects in no particular order and contains no…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 72

Free response Using Objects
In this question you will write two methods of an Experiment class that handles chemical solutions. A chemical solution is said to be acidic if it has a pH…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 73

Free response Using Objects
DNA sequencing and matching has become a standard technique in medical research, forensics, and recreational genealogy. A DNA molecule encodes genetic…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 74

Free response Using Objects
Consider the following incomplete class definition: /** Returns a new string as described in part (a). * Precondition: All letters in text are uppercase; * 0 <…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 75

Free response Using Objects
This question involves two classes that are used to process log messages. A list of sample log messages is given below. CLIENT3:security alert - repeated login…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 76

Free response Using Objects
A high school Casino Night event offers a game of chance in which a player can buy a ticket to have a low-probability chance at winning a fixed prize. (All…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 77

Free response Using Objects
This question involves the design of a simulation of birds or a bear eating from a bird feeder. You will write two methods of the Feeder class below. public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 78

Free response Using Objects
This question involves analyzing and modifying a string. The following Phrase class maintains a phrase in an instance variable and has methods that access and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 79

Free response Using Objects
The APCalendar class contains methods used to calculate information about a calendar. You will write two methods of the class. public class APCalendar { / * *…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 80

Free response Using Objects
This question involves the WordMatch class, which stores a secret string and provides methods that compare other strings to the secret string. You will write…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 71 of 95
Page 8 of 10