Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice 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,481–2,490 of 3,140
  1. 2481
  2. 2482
  3. 2483
  4. 2484
  5. 2485
  6. 2486
  7. 2487
  8. 2488
  9. 2489
  10. 2490

Question 2481

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 2482

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 2483

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 2484

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 2485

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 2486

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 2487

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 2488

Multiple choice Unit 4: Data Collections
In a hypothetical programming model, flag each RSI input strictly greater than70 as true and every other value as false. Return a new boolean array. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2489

Multiple choice Unit 4: Data Collections
Return arraySize random even integers in[0,range] inclusive. Assume arraySize≥0 and0≤range≤1000000. Which replacement for /* missing */ makes the method…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2490

Multiple choice Unit 4: Data Collections
cities starts as[Oakland,Chicago,Milwaukee,Seattle,Denver,Boston]. What does it contain…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,481 of 3,140
Page 249 of 314