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 511–520 of 2,811
  1. 511
  2. 512
  3. 513
  4. 514
  5. 515
  6. 516
  7. 517
  8. 518
  9. 519
  10. 520

Question 511

Multiple choice Unit 1: Using Objects and Methods
A hiking app displays the measured distance 14.62 rounded to the nearest whole kilometer. Two candidate calculations are…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 512

Multiple choice Unit 1: Using Objects and Methods
A rectangular image is 50,000 pixels wide and 50,000 pixels high. Its area, 2,500,000,000, exceeds Integer.MAX_VALUE (2,147,483,647). Which expression should…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 513

Multiple choice Unit 1: Using Objects and Methods
A school store records every price as a whole number of cents. All running totals stay…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 514

Multiple choice Unit 1: Using Objects and Methods
Integer.MAX_VALUE is the largest value that can be stored in an int. Which statement…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 515

Multiple choice Unit 1: Using Objects and Methods
What value is stored in stock after these…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 516

Multiple choice Unit 1: Using Objects and Methods
What is printed by the following code? double credit =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 517

Multiple choice Unit 1: Using Objects and Methods
Which statement can replace the last line without changing its…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 518

Multiple choice Unit 1: Using Objects and Methods
What is printed after these assignments execute in order? int a = 4;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 519

Multiple choice Unit 1: Using Objects and Methods
A student has a balance of 50 credits and buys 4 notebooks at 6 credits each. Which single…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 520

Multiple choice Unit 1: Using Objects and Methods
The code below uses the same variables for several intermediate results. What is printed? int amount = 41; int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 511 of 2,811
Page 52 of 282