Verityprep
Question Bank · Unit 3

AP® Computer Science A Class Creation Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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 359
  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
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 182

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 183

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 184

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 185

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 186

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 187

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 188

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 189

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 190

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 181 of 359
Page 19 of 36