Verityprep
Question Bank · Unit 2

AP® Computer Science A Selection and Iteration Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions on Selection and Iteration, 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 591–600 of 692
  1. 591
  2. 592
  3. 593
  4. 594
  5. 595
  6. 596
  7. 597
  8. 598
  9. 599
  10. 600

Question 591

Multiple choice Iteration
Which initialization makes product equal to 24 after the loop? int product =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 592

Multiple choice Iteration
Which offered int value of target causes exactly four body executions? int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 593

Multiple choice Iteration
What is printed? for (int row = 1; row <= 3; row++) { for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 594

Multiple choice Iteration
Which replacement for the inner for header doubles the total number of executions of count++? Keep the outer loop and the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 595

Multiple choice Iteration
For every int n from 0 through 12 inclusive, which expression equals the final value of count? int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 596

Multiple choice Iteration
What is the final value of count? int count = 0; for (int row = 1;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 597

Multiple choice Iteration
What is printed? int col = 0; int count = 0; for (int row = 0; row < 4;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 598

Multiple choice Iteration
What is printed? int count = 0; for (int row = 1; row <= 3; row++) { int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 599

Multiple choice Iteration
Which output is produced? for (int row = 0; row < 3; row++) { for (int col = 0; col < 3; col++) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 600

Multiple choice Iteration
What is printed? The indentation is shown exactly as intended. for (int row = 1; row <=…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 591 of 692
Page 60 of 70