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

Question 511

Multiple choice Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 Primitive Types
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 681
Page 52 of 69