Verityprep
Question Bank · Unit 4

AP® Computer Science A Data Collections Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions on Data Collections, 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 741–750 of 1,079
  1. 741
  2. 742
  3. 743
  4. 744
  5. 745
  6. 746
  7. 747
  8. 748
  9. 749
  10. 750

Question 741

Multiple choice Using Text Files
Input is the single line a b c d.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 742

Multiple choice Arrays
What is printed? String[] a={"A","B"}; String[] b=a; String[] c={a[0],a[1]} String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 743

Multiple choice Arrays
What is v[4] after this code? int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 744

Multiple choice Arrays
What are the final array contents?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 745

Multiple choice Arrays
What are the final array contents?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 746

Multiple choice Arrays
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 747

Multiple choice Arraylists
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 748

Multiple choice Arraylists
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 749

Multiple choice Arraylists
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 750

Multiple choice Arraylists
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 741 of 1,079
Page 75 of 108