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,141–1,150 of 2,811
  1. 1141
  2. 1142
  3. 1143
  4. 1144
  5. 1145
  6. 1146
  7. 1147
  8. 1148
  9. 1149
  10. 1150

Question 1141

Multiple choice Unit 2: Selection and Iteration
A lab grants access if a person is staff, or if the person is both a member and paid. A suspended person must always…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1142

Multiple choice Unit 2: Selection and Iteration
The int variables left and right store sensor readings. A warning should be true exactly when one reading is at least 10 and the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1143

Multiple choice Unit 2: Selection and Iteration
Three boolean variables a, b, and c record votes. A proposal passes only when…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1144

Multiple choice Unit 2: Selection and Iteration
An integer score is eligible when it is from 60 through 100 inclusive, except…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1145

Multiple choice Unit 2: Selection and Iteration
For integer x from 0 through 12 inclusive, how many values…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1146

Multiple choice Unit 2: Selection and Iteration
A positive integer n earns a bonus when it is divisible by 3 or by 5, but not by both. Values…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1147

Multiple choice Unit 2: Selection and Iteration
What is printed? int a = 8; int b = 3; boolean first = a / b == 2 || a % b == 0 && a < b;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1148

Multiple choice Unit 2: Selection and Iteration
The int variables n and d satisfy -20 <= n <= 20 and -5 <= d <= 5. A result must be true exactly when d is positive and…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1149

Multiple choice Unit 2: Selection and Iteration
What happens when this code runs? int divisor = 0; int total = 12; boolean ready = false;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1150

Multiple choice Unit 2: Selection and Iteration
What happens when this code runs? int total = 9; int group = 3; boolean…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1,141 of 2,811
Page 115 of 282