Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice 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 611–620 of 3,140
  1. 611
  2. 612
  3. 613
  4. 614
  5. 615
  6. 616
  7. 617
  8. 618
  9. 619
  10. 620

Question 611

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 612

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 613

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 614

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 615

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 616

Multiple choice Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 Unit 1: Using Objects and Methods
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 3,140
Page 62 of 314