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,741–2,750 of 3,140
  1. 2741
  2. 2742
  3. 2743
  4. 2744
  5. 2745
  6. 2746
  7. 2747
  8. 2748
  9. 2749
  10. 2750

Question 2741

Multiple choice Unit 4: Data Collections
What are the final array contents?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2742

Multiple choice Unit 4: Data Collections
What are the final array contents?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2743

Multiple choice Unit 4: Data Collections
What is printed? int[] a={0,1}; int[] b=a;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2744

Multiple choice Unit 4: Data Collections
Assume java.util.ArrayList is imported. What is printed? ArrayList list=new ArrayList ()…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2745

Multiple choice Unit 4: Data Collections
What is printed? String[] cities={"Atlanta","Boston","Chicago"} for(String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2746

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 2747

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 2748

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 2749

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 2750

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 2,741 of 3,140
Page 275 of 314