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,961–1,970 of 2,811
  1. 1961
  2. 1962
  3. 1963
  4. 1964
  5. 1965
  6. 1966
  7. 1967
  8. 1968
  9. 1969
  10. 1970

Question 1961

Multiple choice Unit 4: Data Collections
Using inclusive bounds and floor midpoint, how many midpoint elements are…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1962

Multiple choice Unit 4: Data Collections
Binary search is incorrectly applied to unsorted [1,3,6,9,14,10,21]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1963

Multiple choice Unit 4: Data Collections
For a sorted array of length at least3, when can a left-to-right linear…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1964

Multiple choice Unit 4: Data Collections
What is the maximum number of midpoint inspections…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1965

Multiple choice Unit 4: Data Collections
Which approach…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1966

Multiple choice Unit 4: Data Collections
Which sorting method is implemented? public int[] array public int[] tempArr public int length public void sort(int[] inputArr) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1967

Multiple choice Unit 4: Data Collections
For standard insertion sort and top-down merge sort…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1968

Multiple choice Unit 4: Data Collections
Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1969

Multiple choice Unit 4: Data Collections
Consider the following recursive function: public int mystery(int n) { if (n == 0) { return 2; } else { return 2 * mystery(n -…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1970

Multiple choice Unit 4: Data Collections
Consider the following recursive function: public static void printDigits(int number) { if (number == 0) { return;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1,961 of 2,811
Page 197 of 282