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 261–270 of 341
  1. 261
  2. 262
  3. 263
  4. 264
  5. 265
  6. 266
  7. 267
  8. 268
  9. 269
  10. 270

Question 261

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 262

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 263

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 264

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 265

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 266

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 267

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 268

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 269

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 270

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 261 of 341
Page 27 of 35