Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions on Using Objects and Methods, 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: Using Objects Clear filter

Questions 41–50 of 454
  1. 41
  2. 42
  3. 43
  4. 44
  5. 45
  6. 46
  7. 47
  8. 48
  9. 49
  10. 50

Question 41

Multiple choice Using Objects
Consider the following code segment. int x = (int) (2 * Math.random()) + (int) (2 *…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 42

Multiple choice Using Objects
Consider the following method, which prints a message depending on whether the equation \(x^2 + bx + c = 0\) has a positive solution. public static void…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 43

Multiple choice Using Objects
Consider the following method. / * * Returns the greatest common divisor of a and b. * Precondition: a > 0 and b > 0 * / public static int gcd(int a, int b)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 44

Multiple choice Using Objects
What are…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 45

Multiple choice Using Objects
A procedure that is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 46

Multiple choice Using Objects
When a non-void method completes normally, which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 47

Multiple choice Using Objects
What is true of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 48

Multiple choice Using Objects
What does this method call doubleNumber(7.8); return, given the following method?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 49

Multiple choice Using Objects
What does the method call mystery("APCSA"); return for the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 50

Multiple choice Using Objects
What will the value of myBankAccount be after the method call depositMoney(myBankAccount, 572);? int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 41 of 454
Page 5 of 46