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 101–110 of 402
  1. 101
  2. 102
  3. 103
  4. 104
  5. 105
  6. 106
  7. 107
  8. 108
  9. 109
  10. 110

Question 101

Multiple choice Writing Classes
public class Date { private int day; private int month; private int year; public Date() //default constructor { ... } public Date(int mo, int da, int yr)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 102

Multiple choice Writing Classes
public class Date { private int day; private int month; private int year; public Date() //default constructor { ... } public Date(int mo, int da, int yr)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 103

Multiple choice Writing Classes
public class Date { private int day; private int month; private int year; public Date() //default constructor { ... } public Date(int mo, int da, int yr)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 104

Multiple choice Writing Classes
public class Date { private int day; private int month; private int year; public Date() //default constructor { ... } public Date(int mo, int da, int yr)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 105

Multiple choice Writing Classes
public class Date { private int day; private int month; private int year; public Date() //default constructor { ... } public Date(int mo, int da, int yr)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 106

Multiple choice Writing Classes
Consider the following class definition: public class Date { private int day; private int month; private int year; public Date() //default constructor { ... }…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 107

Multiple choice Writing Classes
Consider the following Date class: public class Date { private int day; private int month; private int year; public Date() //default constructor { ... } public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 108

Multiple choice Writing Classes
Here are the private instance variables for a Frog object: public class Frog { private String species; private int age; private double weight; private Position…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 109

Multiple choice Writing Classes
What output will be produced by this program? public class Mystery { public static void strangeMethod(int x, int y) { x += y; y *= x;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 110

Multiple choice Writing Classes
public class Rational { private int numerator; private int denominator; /** default constructor */ Rational() { /* implementation not shown */ } /** Constructs…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 101 of 402
Page 11 of 41