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,091–2,100 of 3,140
  1. 2091
  2. 2092
  3. 2093
  4. 2094
  5. 2095
  6. 2096
  7. 2097
  8. 2098
  9. 2099
  10. 2100

Question 2091

Multiple choice Unit 4: Data Collections
What does the segment test for? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2092

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2093

Multiple choice Unit 4: Data Collections
How do you obtain the number…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2094

Multiple choice Unit 4: Data Collections
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 2095

Multiple choice Unit 4: Data Collections
What happens? ArrayList list=new ArrayList ()…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2096

Multiple choice Unit 4: Data Collections
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 2097

Multiple choice Unit 4: Data Collections
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 2098

Multiple choice Unit 4: Data Collections
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 2099

Multiple choice Unit 4: Data Collections
Which declares an ArrayList myTemps…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2100

Multiple choice Unit 4: Data Collections
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 2,091 of 3,140
Page 210 of 314