Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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 1,911–1,920 of 2,811
  1. 1911
  2. 1912
  3. 1913
  4. 1914
  5. 1915
  6. 1916
  7. 1917
  8. 1918
  9. 1919
  10. 1920

Question 1911

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 1912

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 1913

Multiple choice Unit 4: Data Collections
What does scales contain afterward? ArrayList scales=new ArrayList () scales.add("DO"); scales.add("RE"); scales.add("MI") scales.add("FA"); scales.add("SO")…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1914

Multiple choice Unit 4: Data Collections
What is printed? ArrayList nums=new…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1915

Multiple choice Unit 4: Data Collections
What is printed? ArrayList list=new ArrayList () list.add("One"); list.add("Two");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1916

Multiple choice Unit 4: Data Collections
The method should return the matching string’s index or−1. Which repair is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1917

Multiple choice Unit 4: Data Collections
For nums=[1,2,4,3,4,5], what does search(nums,4) return? public int search(ArrayList list,int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1918

Multiple choice Unit 4: Data Collections
For [6,5,4,3,2,1], how often does the counted statement execute? public static…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1919

Multiple choice Unit 4: Data Collections
Which change makes this selection sort order values from greatest to smallest? public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1920

Multiple choice Unit 4: Data Collections
How often does curIndex-- execute for insertionSort(new int[]{6,5,4,3,2,1})? public static int[] insertionSort(int[] arr) { for(int i=1;i…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1,911 of 2,811
Page 192 of 282