Verityprep
Question Bank · Unit 4

AP® Computer Science A Data Collections Practice Questions

Work through AP Computer Science A practice 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 341
  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 array contents?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 252

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 253

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

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 254

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 255

Multiple choice Arrays
What is printed? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 256

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 257

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 258

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 259

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 260

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 251 of 341
Page 26 of 35