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 251–260 of 300
  1. 251
  2. 252
  3. 253
  4. 254
  5. 255
  6. 256
  7. 257
  8. 258
  9. 259
  10. 260

Question 251

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 252

Multiple choice Arrays
What is printed? int result=0;int[] a={1,2,3,4,5} for(int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 253

Multiple choice Arrays
What are the final array contents?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 254

Multiple choice Arrays
What is count after the loop? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 255

Multiple choice Arrays
What are the final array and sum? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 256

Multiple choice Arrays
For a nonempty array, what does this method return? public int mystery(int[] a){ int m=-1,index=0; for(int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 257

Multiple choice Arrays
What is printed? int[] arr={1,2,3,4,5};int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 258

Multiple choice Arrays
What is printed? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 259

Multiple choice Arrays
Given the array int[] arr = {5, 10, 15, 20,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 260

Multiple choice Arrays
Consider the following method, which is intended to return the maximum integer value contained in ranges. /** Precondition: ranges contains at least one…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 251 of 300
Page 26 of 30