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 571–580 of 3,140
  1. 571
  2. 572
  3. 573
  4. 574
  5. 575
  6. 576
  7. 577
  8. 578
  9. 579
  10. 580

Question 571

Free response Unit 1: Using Objects and Methods
This question involves parts used to assemble toy vehicles. Each toy vehicle is assembled using one base and either two or four wheels. The following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 572

Multiple choice Unit 1: Using Objects and Methods
A program that calculates a student's average from sum and count (both int) compiles and runs without crashing, but a student…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 573

Multiple choice Unit 1: Using Objects and Methods
Which of the following is a valid Java identifier that…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 574

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 575

Multiple choice Unit 1: Using Objects and Methods
What is printed by the following code segment? int a =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 576

Multiple choice Unit 1: Using Objects and Methods
What is the value of result after the following code segment…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 577

Multiple choice Unit 1: Using Objects and Methods
What is printed by the following code segment? int m = 9; int n = 4;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 578

Multiple choice Unit 1: Using Objects and Methods
What is the value of p after the following code segment is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 579

Multiple choice Unit 1: Using Objects and Methods
What is the value of d after the following statement is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 580

Multiple choice Unit 1: Using Objects and Methods
Which of the following expressions produces a random…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 571 of 3,140
Page 58 of 314