Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions unit by unit, 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 1,111–1,120 of 2,811
  1. 1111
  2. 1112
  3. 1113
  4. 1114
  5. 1115
  6. 1116
  7. 1117
  8. 1118
  9. 1119
  10. 1120

Question 1111

Multiple choice Unit 2: Selection and Iteration
What is printed by the following code segment? int n = 6; if (n % 2 == 0)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1112

Multiple choice Unit 2: Selection and Iteration
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 1113

Multiple choice Unit 2: Selection and Iteration
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 1114

Multiple choice Unit 2: Selection and Iteration
Which of the following is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1115

Multiple choice Unit 2: Selection and Iteration
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 1116

Multiple choice Unit 2: Selection and 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 1117

Multiple choice Unit 2: Selection and 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 1118

Multiple choice Unit 2: Selection and Iteration
Which of the following code…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1119

Multiple choice Unit 2: Selection and 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 1120

Multiple choice Unit 2: Selection and 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 1,111 of 2,811
Page 112 of 282