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 751–760 of 1,079
  1. 751
  2. 752
  3. 753
  4. 754
  5. 755
  6. 756
  7. 757
  8. 758
  9. 759
  10. 760

Question 751

Multiple choice Arraylists
Complete rateIsIncreasing so it returns true exactly when every daily gain is positive and gains strictly increase. prices contains at least three finite…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 752

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 753

Multiple choice Arrays
What is printed? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 754

Multiple choice Arrays
Which replacements correctly count values divisible by 3 in every…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 755

Multiple choice Arrays
For an array of length at least 3, which statement is always…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 756

Multiple choice Arrays
Which change repairs the return-type error while returning the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 757

Multiple choice Arrays
For a large sorted random-access array, which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 758

Multiple choice Arrays
a is a nonempty sorted int array and target occurs in it. Which methods compile and always return an index of target? // I public int findI(int[] a,int target){…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 759

Multiple choice Arrays
What is the length of a? String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 760

Multiple choice Arrays
What is printed? String[] s=new String[2] String[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 751 of 1,079
Page 76 of 108