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 2,311–2,320 of 2,811
  1. 2311
  2. 2312
  3. 2313
  4. 2314
  5. 2315
  6. 2316
  7. 2317
  8. 2318
  9. 2319
  10. 2320

Question 2311

Multiple choice Unit 4: Data Collections
Merge sort takes about18ms for80000 random values and40ms for160000. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2312

Multiple choice Unit 4: Data Collections
The Binary Search algorithm is designed to work with an array sorted in ascending order. Under which of the following circumstances will the algorithm find a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2313

Multiple choice Unit 4: Data Collections
What is printed when the code segment is executed? ArrayList<Integer> lst = new ArrayList<Integer>(); int k = 2; while (lst.size() <…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2314

Multiple choice Unit 4: Data Collections
Consider the following three implementations of a method rotate90Degrees and the code segments used to test them. I. public int[] rotate90Degrees(int[] v) {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2315

Multiple choice Unit 4: Data Collections
String[] a = {"A", "B"}; String[] b = a; String[] c = {a[0], a[1]}; String letter = a[0]; a[0] = a[1]; a[1] =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2316

Multiple choice Unit 4: Data Collections
What is the value of v[4] after the following code segment is executed? int d = 1;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2317

Multiple choice Unit 4: Data Collections
Consider the following method. public void splat(String s) { if (s.length() < 8)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2318

Multiple choice Unit 4: Data Collections
Consider the following method. public void printVals(String[] items, int k) { if (k > 1) { printVals(items, k - 1); System.out.print(items[k] + " ");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2319

Multiple choice Unit 4: Data Collections
Consider the following method. public void printVals(String[] items, int k) { if (k > 1) { printVals(items, k - 1); System.out.print(items[k] + " ");…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2320

Multiple choice Unit 4: Data Collections
Consider the following classes Point and Polygon. public class Point { private int x, y; public Point(int _x, int _y) { x = _x; y = _y; } public int getX() {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,311 of 2,811
Page 232 of 282