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,131–1,140 of 2,811
  1. 1131
  2. 1132
  3. 1133
  4. 1134
  5. 1135
  6. 1136
  7. 1137
  8. 1138
  9. 1139
  10. 1140

Question 1131

Multiple choice Unit 2: Selection and Iteration
What is printed by the following code segment? String s = "banana"; int count = 0; for (int i = 0; i…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1132

Multiple choice Unit 2: Selection and Iteration
What is printed by the following code segment? int a = 1; int b =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1133

Multiple choice Unit 2: Selection and Iteration
What is printed by the following code segment? for (int i = 3; i >= 1; i--) { for (int j = 1; j <=…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1134

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

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

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

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

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

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

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