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 761–770 of 1,079
  1. 761
  2. 762
  3. 763
  4. 764
  5. 765
  6. 766
  7. 767
  8. 768
  9. 769
  10. 770

Question 761

Multiple choice Arrays
What is printed? final int[] a={1,2};int[] b=a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 762

Multiple choice Arrays
What is printed? final int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 763

Multiple choice Arrays
Which loop bodies correctly count all values divisible by 3…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 764

Multiple choice Arrays
arr has at least four elements.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 765

Multiple choice Arrays
What are the final scores? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 766

Multiple choice Arrays
What are the final names? String[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 767

Multiple choice Arraylists
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 768

Multiple choice Arraylists
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 769

Multiple choice Arraylists
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 770

Multiple choice Arraylists
What are the final list contents?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 761 of 1,079
Page 77 of 108