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

Question 501

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