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 171–180 of 1,079
  1. 171
  2. 172
  3. 173
  4. 174
  5. 175
  6. 176
  7. 177
  8. 178
  9. 179
  10. 180

Question 171

Multiple choice Arrays
What does the segment test for? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 172

Multiple choice Arrays
What is printed? String[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 173

Multiple choice Arraylists
How do you obtain the number…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 174

Multiple choice Arrays
What is printed? int[] numbers={1,2,3,4,5}…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 175

Multiple choice Arraylists
What happens? ArrayList list=new ArrayList ()…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 176

Multiple choice Arraylists
What is wrong with this code? ArrayList list=new…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 177

Multiple choice Arraylists
What is printed? ArrayList list=new ArrayList () list.add(0); list.add(1);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 178

Multiple choice Arraylists
What is printed? ArrayList list=new ArrayList () list.add("I"); list.add("love");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 179

Multiple choice Arraylists
Which declares an ArrayList myTemps…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 180

Multiple choice Arraylists
What does nums contain afterward? ArrayList nums=new ArrayList () nums.add(10); nums.add(20);…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 171 of 1,079
Page 18 of 108