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.

Questions 81–90 of 359
  1. 81
  2. 82
  3. 83
  4. 84
  5. 85
  6. 86
  7. 87
  8. 88
  9. 89
  10. 90

Question 81

Multiple choice Writing Classes
What would the value of the static variable phrase be after the first time printPhrases was called from main? public class PrintQuestion { private…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 82

Multiple choice Writing Classes
Suppose there is a local variable declared in the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 83

Multiple choice Writing Classes
The following function computes the hypotenuse of a right triangle. public double findHypotenuse(int side1, int side2){ double hyp = Math.sqrt(side1 * side1 +…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 84

Multiple choice Writing Classes
What is the this…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 85

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 86

Multiple choice Writing Classes
Why can't this be…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 87

Multiple choice Writing Classes
Which of the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 88

Multiple choice Writing Classes
A car dealership is writing a program to store information about the cars for sale. You create a class called Car to…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 89

Multiple choice Writing Classes
Given this code snippet, public class GoldenRetriever { public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 90

Multiple choice Writing Classes
Consider the following class definition. public class Example { private int x; // Constructor not shown. } Which of the following is a correct header…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 81 of 359
Page 9 of 36