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,871–1,880 of 2,811
  1. 1871
  2. 1872
  3. 1873
  4. 1874
  5. 1875
  6. 1876
  7. 1877
  8. 1878
  9. 1879
  10. 1880

Question 1871

Multiple choice Unit 4: Data Collections
The nonempty int array may contain any int values. Which initializers always make findMin correct? I: Integer.MAX_VALUE.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1872

Multiple choice Unit 4: Data Collections
Which describes ascending…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1873

Multiple choice Unit 4: Data Collections
What is arr after mystery()? private int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1874

Multiple choice Unit 4: Data Collections
For a nonempty int array arr, arr[0]!=arr[i] for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1875

Multiple choice Unit 4: Data Collections
Sort [10,40,50,30,20,60] in descending order using insertion sort.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1876

Multiple choice Unit 4: Data Collections
Which loop throws ArrayIndexOutOfBoundsException…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1877

Multiple choice Unit 4: Data Collections
Which code actually adds 5 to every array element? I int[] numbers={1,2,3,4}; for(int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1878

Multiple choice Unit 4: Data Collections
The method should return true if target appears anywhere in arr. Which statement is true? public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1879

Multiple choice Unit 4: Data Collections
What happens when the code is compiled and run? int[] highTemp={88,92,94,90,88,83} int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1880

Multiple choice Unit 4: Data Collections
For a nonempty array, does shiftRight rotate every element one position right, wrapping the last to the first? public…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1,871 of 2,811
Page 188 of 282