Verityprep
Question Bank · Unit 1

AP® Computer Science A Using Objects and Methods Practice Questions

Work through AP Computer Science A practice 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 431–440 of 546
  1. 431
  2. 432
  3. 433
  4. 434
  5. 435
  6. 436
  7. 437
  8. 438
  9. 439
  10. 440

Question 431

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 432

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 433

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 434

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 435

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 436

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 437

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 438

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 439

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 440

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 431 of 546
Page 44 of 55