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,481–2,490 of 2,811
  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
For which category of lists does this method always remove every negative element?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2482

Multiple choice Unit 4: Data Collections
Which replacement makes this an unbiased Fisher–Yates shuffle, assuming Math.random() is uniform? int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2483

Multiple choice Unit 4: Data Collections
Complete rateIsIncreasing so it returns true exactly when every daily gain is positive and gains strictly increase. prices contains at least three finite…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2484

Multiple choice Unit 4: Data Collections
What happens? final int[] a={1,2};…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2485

Multiple choice Unit 4: Data Collections
What is printed? int[]…

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 replacements correctly count values divisible by 3 in every…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2487

Multiple choice Unit 4: Data Collections
For an array of length at least 3, which statement is always…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2488

Multiple choice Unit 4: Data Collections
Which change repairs the return-type error while returning the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2489

Multiple choice Unit 4: Data Collections
For a large sorted random-access array, which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2490

Multiple choice Unit 4: Data Collections
a is a nonempty sorted int array and target occurs in it. Which methods compile and always return an index of target? // I public int findI(int[] a,int target){…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,481 of 2,811
Page 249 of 282