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 191–200 of 316
  1. 191
  2. 192
  3. 193
  4. 194
  5. 195
  6. 196
  7. 197
  8. 198
  9. 199
  10. 200

Question 191

Multiple choice Boolean Expressions
What is printed? int samples = 17; int seconds = 5; double rate = samples / seconds;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 192

Multiple choice Boolean Expressions
What is printed? int count = 5; double size = 2.0; boolean first = count / size == count / 2;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 193

Multiple choice Boolean Expressions
What is printed? int amount = 14; int groups = 4; boolean p = amount / groups > 3; boolean q =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 194

Multiple choice Boolean Expressions
The variable count is a positive int. The requirement is to accept it when count / 5.0 is greater than 3.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 195

Multiple choice Boolean Expressions
An int variable n satisfies 0 <= n <= 50. Which list contains all…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 196

Multiple choice Boolean Expressions
What is printed? int score = 70; boolean passed = score >= 75; score += 10;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 197

Multiple choice Boolean Expressions
The int variables x and limit have already been initialized. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 198

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

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

Multiple choice Boolean Expressions
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 191 of 316
Page 20 of 32