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.

Questions 571–580 of 681
  1. 571
  2. 572
  3. 573
  4. 574
  5. 575
  6. 576
  7. 577
  8. 578
  9. 579
  10. 580

Question 571

Multiple choice Using Objects
Which statement correctly describes hits after the loop? int hits = 0; for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 572

Multiple choice Using Objects
For this execution only, the three calls to Math.random() return 0.125, 0.875, and 0.375, in that order. What is printed? int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 573

Multiple choice Using Objects
Assume the two calls act as independent draws. Over many executions, which value of gap should be the most frequent?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 574

Multiple choice Using Objects
Which list contains all and only the possible final values of hits? double r =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 575

Multiple choice Using Objects
A bonus should be awarded with probability approximately 0.75. Which condition…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 576

Multiple choice Using Objects
Which range contains all and only the possible values…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 577

Multiple choice Using Objects
Which pair lists all and only the possible printed values? int bit…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 578

Multiple choice Using Objects
The code is intended to accept a reading only when it differs from target by at most 0.5. Which offered pair reading,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 579

Multiple choice Using Objects
What is printed? int value = -5; double result =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 580

Multiple choice Using Objects
What is printed? double amount = 36; double root = Math.sqrt(amount);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 571 of 681
Page 58 of 69