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 431–440 of 692
  1. 431
  2. 432
  3. 433
  4. 434
  5. 435
  6. 436
  7. 437
  8. 438
  9. 439
  10. 440

Question 431

Multiple choice Boolean Expressions
What is the value of r after the following code segment is executed? int a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 432

Multiple choice Boolean Expressions
What is printed by the following code segment? int x = 0; int y = 6; if (x != 0 && y / x > 2)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 433

Multiple choice Boolean Expressions
Which of the following is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 434

Multiple choice Boolean Expressions
Consider the following declarations: boolean p = true; boolean q = false; Which of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 435

Multiple choice Iteration
Consider the following loop: for (int i = 3;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 436

Multiple choice Iteration
What is printed by the following code segment? int n = 100; int count = 0;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 437

Multiple choice Iteration
Which of the following code…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 438

Multiple choice Iteration
How many times is the body of the following loop…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 439

Multiple choice Iteration
What is printed by the following code segment? for (int r = 1; r <= 3; r++) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 440

Multiple choice Iteration
What is the value of count after the following code segment is executed? int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 431 of 692
Page 44 of 70