Verityprep
Question Bank · Unit 4

AP® Computer Science A Data Collections Practice Questions

Work through AP Computer Science A practice 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 841–850 of 1,222
  1. 841
  2. 842
  3. 843
  4. 844
  5. 845
  6. 846
  7. 847
  8. 848
  9. 849
  10. 850

Question 841

Multiple choice Arrays
What is printed? final int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 842

Multiple choice Arrays
Which loop bodies correctly count all values divisible by 3…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 843

Multiple choice Arrays
arr has at least four elements.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 844

Multiple choice Arrays
What are the final scores? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 845

Multiple choice Arrays
What are the final names? String[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 846

Multiple choice Arraylists
Assume ArrayList is imported. What is printed? ArrayList a=new ArrayList ()…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 847

Multiple choice Arraylists
What remains in letters? java.util.ArrayList letters=new…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 848

Multiple choice Arraylists
What is printed? java.util.ArrayList myList=new…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 849

Multiple choice Arraylists
What are the final list contents?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 850

Multiple choice 2D Arrays
Consider the following code segment: int[][] num = new int[4][4]; for (int i = 0; i < num.length; i++) { for (int k…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 841 of 1,222
Page 85 of 123