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 671–680 of 692
  1. 671
  2. 672
  3. 673
  4. 674
  5. 675
  6. 676
  7. 677
  8. 678
  9. 679
  10. 680

Question 671

Multiple choice Iteration
What is printed as a result of executing the following code segment? int a =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 672

Multiple choice Iteration
What is printed as a result of executing the following code segment? int i = 1; int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 673

Multiple choice Iteration
What is printed as a result of executing the following code segment? int n = 1; boolean found =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 674

Multiple choice Iteration
What is printed as a result of executing the following code segment? int a =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 675

Multiple choice Iteration
What is printed as a result of executing the following code segment? int a = 1, b = 1, c…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 676

Multiple choice Iteration
What is printed as a result of executing the following code segment? int count = 0; for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 677

Multiple choice Iteration
What is printed as a result of executing the following code segment? for (int i = 1; i <= 4; i++) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 678

Multiple choice Iteration
What is printed as a result of executing the following code segment? int i =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 679

Multiple choice Iteration
What is printed as a result of executing the following code segment? for (int i = 3; i >= 1; i--) { for (int j = 0; j…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 680

Multiple choice Iteration
What is printed as a result of executing the following code segment? int max = 0; for (int i…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 671 of 692
Page 68 of 70