Verityprep
Question Bank · Unit 4

AP® Computer Science A Data Collections Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions on Data Collections, 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 791–800 of 1,079
  1. 791
  2. 792
  3. 793
  4. 794
  5. 795
  6. 796
  7. 797
  8. 798
  9. 799
  10. 800

Question 791

Multiple choice 2D Arrays
Consider the following 2D array: int[][] matrix = new int[3][4]; int count = 0; for (int i = 0;i < matrix.length;i++) { for (int j =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 792

Multiple choice Arrays
What is printed? int[] arr={1,2,3,4,5};int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 793

Multiple choice Arrays
What is printed? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 794

Multiple choice 2D Arrays
Consider the following 2D array: int[][] matrix = { {1, 2,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 795

Multiple choice Arrays
Given the array int[] arr = {5, 10, 15, 20,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 796

Multiple choice Recursion
What does sum(4) return? public int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 797

Multiple choice Arraylists
What is printed? java.util.ArrayList a=new java.util.ArrayList…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 798

Multiple choice Unit 4: Data Collections
A researcher wants to investigate which age group (under 18 years old, or 18 years old and over) is more likely to have downloaded a certain application from an…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 799

Multiple choice Arrays
Consider the following method, which is intended to return the maximum integer value contained in ranges. /** Precondition: ranges contains at least one…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 800

Multiple choice Using Text Files
A text file named roster.txt has the following contents. Assume that the file contains no spaces. Cohen-Isabel Lee-Cindy Patel-Anisha Sanchez-Michael In the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 791 of 1,079
Page 80 of 108