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

Question 611

Multiple choice Iteration
Which replacement lets the loop terminate normally with d equal to 0, without throwing…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 612

Multiple choice Iteration
What is printed? Notice the semicolon immediately after the for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 613

Multiple choice Iteration
What is printed? int row = 1; int col = 0; boolean found = false; while (row <= 4 && !found) { col = 1; while…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 614

Multiple choice Iteration
What is printed? int value = 17; for (int round = 0; round <…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 615

Multiple choice Iteration
What is printed? int n = 19; int total = 0; while (n…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 616

Multiple choice Iteration
What is printed? int value = 20; for (int divisor = 2; divisor…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 617

Multiple choice Iteration
What is printed? boolean add = true; int score = 0; for (int i = 1; i <= 4; i++) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 618

Multiple choice Iteration
What is printed? int total = 0; for (int i = 0; i < 5; i++) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 619

Multiple choice Iteration
What is printed? int i = 1; int total = 0; for (; i < 4; i++) { total +=…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 620

Multiple choice Iteration
What is printed? double a = 0; double b = 0; for (int k = 1; k <=…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 611 of 692
Page 62 of 70