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,521–2,530 of 2,811
  1. 2521
  2. 2522
  3. 2523
  4. 2524
  5. 2525
  6. 2526
  7. 2527
  8. 2528
  9. 2529
  10. 2530

Question 2521

Multiple choice Unit 4: Data Collections
What are the final array and sum? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2522

Multiple choice Unit 4: Data Collections
For a nonempty array, what does this method return? public int mystery(int[] a){ int m=-1,index=0; for(int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2523

Multiple choice Unit 4: Data Collections
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 2524

Multiple choice Unit 4: Data Collections
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 2525

Multiple choice Unit 4: Data Collections
What is printed? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2526

Multiple choice Unit 4: Data Collections
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 2527

Multiple choice Unit 4: Data Collections
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 2528

Multiple choice Unit 4: Data Collections
What does sum(4) return? public int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2529

Multiple choice Unit 4: Data Collections
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 2530

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 2,521 of 2,811
Page 253 of 282