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 611–620 of 776
  1. 611
  2. 612
  3. 613
  4. 614
  5. 615
  6. 616
  7. 617
  8. 618
  9. 619
  10. 620

Question 611

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 612

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 613

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 614

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 615

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 616

Multiple choice Primitive Types
Which integer literal can replace the comment so that this code prints 5? int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 617

Multiple choice Primitive Types
What is printed? Each option shows the visible output; ignore the final cursor…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 618

Multiple choice Primitive Types
What is printed by this statement? Ignore the final…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 619

Multiple choice Primitive Types
What visible output does this statement…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 620

Multiple choice Primitive Types
The variables below contain two scores. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 611 of 776
Page 62 of 78