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.

Subtopic: Boolean Expressions Clear filter

Questions 201–210 of 316
  1. 201
  2. 202
  3. 203
  4. 204
  5. 205
  6. 206
  7. 207
  8. 208
  9. 209
  10. 210

Question 201

Multiple choice Boolean Expressions
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 202

Multiple choice Boolean Expressions
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 203

Multiple choice Boolean Expressions
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 204

Multiple choice Boolean Expressions
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 205

Multiple choice Boolean Expressions
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 206

Multiple choice Boolean Expressions
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 207

Multiple choice Boolean Expressions
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 208

Multiple choice Boolean Expressions
Each offered value replaces the comment in a separate run. Which value causes…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 209

Multiple choice Boolean Expressions
What happens when this code runs? int zero = 0;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 210

Multiple choice Boolean Expressions
The int variables amount and divisor satisfy 0 <= amount <= 30 and 0 <= divisor <= 10. The expression below is safe. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 201 of 316
Page 21 of 32