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.

Subtopic: Arrays Clear filter

Questions 241–250 of 300
  1. 241
  2. 242
  3. 243
  4. 244
  5. 245
  6. 246
  7. 247
  8. 248
  9. 249
  10. 250

Question 241

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 242

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 243

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 244

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 245

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 246

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 247

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 248

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 249

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 250

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 241 of 300
Page 25 of 30