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.

Questions 601–610 of 776
  1. 601
  2. 602
  3. 603
  4. 604
  5. 605
  6. 606
  7. 607
  8. 608
  9. 609
  10. 610

Question 601

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 602

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 603

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 604

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 605

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 606

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 607

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 608

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 609

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 610

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 601 of 776
Page 61 of 78