Verityprep
Question Bank · Unit 2

AP® Computer Science A Selection and Iteration Practice Questions

Work through AP Computer Science A practice 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 641–650 of 740
  1. 641
  2. 642
  3. 643
  4. 644
  5. 645
  6. 646
  7. 647
  8. 648
  9. 649
  10. 650

Question 641

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 642

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 643

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 644

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 645

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 646

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 647

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 648

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 649

Multiple choice Iteration
Across the entire code segment, how many times is col < 2 evaluated? for (int row =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 650

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 641 of 740
Page 65 of 74