Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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 731–740 of 2,811
  1. 731
  2. 732
  3. 733
  4. 734
  5. 735
  6. 736
  7. 737
  8. 738
  9. 739
  10. 740

Question 731

Multiple choice Unit 2: Selection and Iteration
What does the following code print? for (int i…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 732

Multiple choice Unit 2: Selection and Iteration
What does the following code print? for (int i = 1; i < 6; i++) { for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 733

Multiple choice Unit 2: Selection and Iteration
How many stars are output when the following code is executed? for (int i =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 734

Multiple choice Unit 2: Selection and Iteration
1 1 1 1 2 2 2 3 3 4 Which of the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 735

Multiple choice Unit 2: Selection and Iteration
What is printed as a result of executing the following code snippet? for (int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 736

Multiple choice Unit 2: Selection and Iteration
How often is the inner…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 737

Multiple choice Unit 2: Selection and Iteration
Consider the following code snippet. Is count < 5 always true, always false, or sometimes true/sometimes…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 738

Multiple choice Unit 2: Selection and Iteration
Consider the following code snippet. Is count < 5 always true, always false, or sometimes true/sometimes false at point 2? int count = 0; while (count…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 739

Multiple choice Unit 2: Selection and Iteration
How many times does the following loop iterate? // x has been…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 740

Multiple choice Unit 2: Selection and Iteration
How many times does the following loop iterate? // x has been initialized with a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 731 of 2,811
Page 74 of 282