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 561–570 of 2,811
  1. 561
  2. 562
  3. 563
  4. 564
  5. 565
  6. 566
  7. 567
  8. 568
  9. 569
  10. 570

Question 561

Multiple choice Unit 1: Using Objects and Methods
A ring has inner radius inner and outer radius outer, where both are ints and 1 <= inner < outer <= 6. Its area is pi…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 562

Multiple choice Unit 1: Using Objects and Methods
What is printed? Math.PI is approximately 3.14159. double radius = 5 / 2;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 563

Multiple choice Unit 1: Using Objects and Methods
What is printed? Math.PI is approximately 3.14159.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 564

Multiple choice Unit 1: Using Objects and Methods
Which output is guaranteed every time this code executes? double r =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 565

Multiple choice Unit 1: Using Objects and Methods
A game must choose one of the even scores 4, 6, 8, and 10, with approximately equal…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 566

Multiple choice Unit 1: Using Objects and Methods
A program must generate a random integer from 7 through 19, including both endpoints, with approximately…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 567

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 568

Multiple choice Unit 1: Using Objects and Methods
The same random value r is used in both assignments. Which offered pair a:b…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 569

Multiple choice Unit 1: Using Objects and Methods
Over many executions, which value of prize should occur approximately twice as often as either of the other two values?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 570

Multiple choice Unit 1: Using Objects and Methods
A program must generate every integer satisfying -6 <= value < 2, with approximately equal probabilities and no…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 561 of 2,811
Page 57 of 282