Verityprep
Question Bank

AP® Computer Science A Practice Questions

Work through AP Computer Science A practice 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,761–2,770 of 3,140
  1. 2761
  2. 2762
  3. 2763
  4. 2764
  5. 2765
  6. 2766
  7. 2767
  8. 2768
  9. 2769
  10. 2770

Question 2761

Multiple choice Unit 4: Data Collections
arr has at least four elements.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2762

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2763

Multiple choice Unit 4: Data Collections
What are the final names? String[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2764

Multiple choice Unit 4: Data Collections
Assume ArrayList is imported. What is printed? ArrayList a=new ArrayList ()…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2765

Multiple choice Unit 4: Data Collections
What remains in letters? java.util.ArrayList letters=new…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2766

Multiple choice Unit 4: Data Collections
What is printed? java.util.ArrayList myList=new…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2767

Multiple choice Unit 4: Data Collections
What are the final list contents?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2768

Multiple choice Unit 4: Data Collections
Consider the following code segment: int[][] num = new int[4][4]; for (int i = 0; i < num.length; i++) { for (int k…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2769

Multiple choice Unit 4: Data Collections
The following class, Arr2d, is meant to represent a two-dimensional array object. The constructor will initialize Arr2d using the number of rows and columns…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2770

Multiple choice Unit 4: Data Collections
Which output layout results? int[][] numbers={{1,2,3,4},{5,6,7,8}}; for(int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,761 of 3,140
Page 277 of 314