Verityprep
Question Bank · Unit 3

AP® Computer Science A Class Creation Practice Questions

Work through AP Computer Science A practice questions on Class Creation, 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: Writing Classes Clear filter

Questions 181–190 of 402
  1. 181
  2. 182
  3. 183
  4. 184
  5. 185
  6. 186
  7. 187
  8. 188
  9. 189
  10. 190

Question 181

Multiple choice Writing Classes
Consider the following classes: public class BookInfo { private String title; private String author; private int numPages; // constructor not shown public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 182

Free response Writing Classes
The College Board gives awards to students who are successful on AP exams: AP Scholar: Received grades of 3 or higher on three or more AP Exams AP Scholar with…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 183

Free response Writing Classes
You can purchase any number of apples at Papas Orchards, but every six purchased are priced as five. For example, if the price of each apple is 69 cents and you…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 184

Multiple choice Writing Classes
Consider the following class definition: public class Class1 { public static int method1(int a, int b) { int temp = a; a = b; b = temp; return b; } public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 185

Free response Writing Classes
This question involves a scoreboard for a game. The game is played between two teams who alternate turns so that at any given time, one team is active and the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 186

Free response Writing Classes
An APLine is a line defined by the equation ax + by + c = 0, where a is not equal to zero, b is not equal to zero, and a, b, and c are all integers. The slope…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 187

Free response Writing Classes
This question involves tracking player performance during a gaming tournament. The GameTracker class, which you will write, is used to monitor each player's…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 188

Free response Writing Classes
This question involves analyzing scoring trends for a competitive challenge. The TrendTracker class, which you will write, is used to track not only the scores…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 189

Free response Writing Classes
This question involves the implementation of a zombie plant treatment system that is represented by the ZombiePlant class. A ZombiePlant object is created with…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 190

Multiple choice Writing Classes
Which of the following class declarations would cause a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 181 of 402
Page 19 of 41