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

Question 561

Multiple choice Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 Using Objects
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 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 568

Multiple choice Using Objects
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 Using Objects
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 Using Objects
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 681
Page 57 of 69