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 2,261–2,270 of 2,811
  1. 2261
  2. 2262
  3. 2263
  4. 2264
  5. 2265
  6. 2266
  7. 2267
  8. 2268
  9. 2269
  10. 2270

Question 2261

Multiple choice Unit 4: Data Collections
What is printed? int total=3 int[] values={8,6,4,-2}…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2262

Multiple choice Unit 4: Data Collections
What is printed without separators?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2263

Multiple choice Unit 4: Data Collections
Which correctly counts even array VALUES? I tests i%2==0 for every index. II tests arr[i]%2==0 for every index. III tests arr[i]%2==0 only for even indices. I…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2264

Multiple choice Unit 4: Data Collections
What is printed? int[] arr={2,25,7,28,9} for(int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2265

Multiple choice Unit 4: Data Collections
What does nums contain afterward?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2266

Multiple choice Unit 4: Data Collections
For one outer-loop iteration at a given i, how many inner-loop body…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2267

Multiple choice Unit 4: Data Collections
For a nonempty array,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2268

Multiple choice Unit 4: Data Collections
Which counts nonnull strings containing lowercase e, including e…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2269

Multiple choice Unit 4: Data Collections
Which prints the corresponding name and score for every player whose score is strictly above high?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2270

Multiple choice Unit 4: Data Collections
Return a new array without modifying arr. Values>750 become1000; values public int[] replaceHighAndLow(int[] arr) { int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,261 of 2,811
Page 227 of 282