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,751–2,760 of 3,140
  1. 2751
  2. 2752
  3. 2753
  4. 2754
  5. 2755
  6. 2756
  7. 2757
  8. 2758
  9. 2759
  10. 2760

Question 2751

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

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

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

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

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

Multiple choice Unit 4: Data Collections
What is the length of a? String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2757

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

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

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2760

Multiple choice Unit 4: Data Collections
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 2,751 of 3,140
Page 276 of 314