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.

Questions 201–210 of 402
  1. 201
  2. 202
  3. 203
  4. 204
  5. 205
  6. 206
  7. 207
  8. 208
  9. 209
  10. 210

Question 201

Multiple choice Writing Classes
Which of the following are signs of a well-designed program? I. Clients know how data is stored in the class. II. Classes and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 202

Multiple choice Writing Classes
Consider the following class: public class Sample…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 203

Multiple choice Writing Classes
Which of the following is the correct syntax for declaring a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 204

Multiple choice Writing Classes
Which of the following is NOT a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 205

Multiple choice Writing Classes
Consider the following class definition: public class Circle { private double radius; public Circle(double radius) { this.radius = radius; } public double…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 206

Multiple choice Writing Classes
Which of the following is the correct…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 207

Multiple choice Writing Classes
Consider the following Date class. public class Date { private String month; private int day; public Date(String m, int d) { /* implementation not shown */ } /*…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 208

Multiple choice Writing Classes
A programmer is creating a Movie class that will contain attributes for a movie's title and its average user rating on a scale from 0.0 to 5.0. The class must…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 209

Multiple choice Writing Classes
A programmer developed a method and wants to allow other programmers to use the method in other programs…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 210

Multiple choice Writing Classes
The following class declarations are used to represent information about an apartment and a duplex, which is a building containing two apartments. public class…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 201 of 402
Page 21 of 41