Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions unit by unit, 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 2,811
  1. 571
  2. 572
  3. 573
  4. 574
  5. 575
  6. 576
  7. 577
  8. 578
  9. 579
  10. 580

Question 571

Multiple choice Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 2,811
Page 58 of 282