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 501–510 of 681
  1. 501
  2. 502
  3. 503
  4. 504
  5. 505
  6. 506
  7. 507
  8. 508
  9. 509
  10. 510

Question 501

Multiple choice Primitive Types
A teacher has 72 tickets and puts 5 tickets in each complete packet. Which pair…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 502

Multiple choice Primitive Types
A sensor takes four readings per minute. Which value for readings makes completeMinutes and preciseMinutes contain the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 503

Multiple choice Primitive Types
A student expects rate to contain 5.25 after these statements, but it contains 5.0.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 504

Multiple choice Primitive Types
What is printed by the following code? int first = 27 / 4 * 4;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 505

Multiple choice Primitive Types
The int variables amount and size satisfy 0 <= amount <= 200 and 1…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 506

Multiple choice Primitive Types
What value is stored in result?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 507

Multiple choice Primitive Types
A payment is stored as 875 cents. Which expression should replace the comment…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 508

Multiple choice Primitive Types
What value is stored in…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 509

Multiple choice Primitive Types
Two measurements are 7.7 and 2.7. A program must compute their arithmetic mean and then discard only the fractional…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 510

Multiple choice Primitive Types
What is printed by the following code? double value =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 501 of 681
Page 51 of 69