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.

Questions 161–170 of 1,222
  1. 161
  2. 162
  3. 163
  4. 164
  5. 165
  6. 166
  7. 167
  8. 168
  9. 169
  10. 170

Question 161

Multiple choice Arrays
What is printed, one number per line?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 162

Multiple choice Arrays
What occurs? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 163

Multiple choice Arrays
What is printed? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 164

Multiple choice Arrays
What is printed? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 165

Multiple choice Arrays
What value is printed? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 166

Multiple choice Arrays
When is an enhanced for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 167

Multiple choice Arrays
True or false: assigning a new value to an enhanced-for…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 168

Multiple choice Arrays
What is printed? int[] scores={80,92,91,68,88}…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 169

Multiple choice Arrays
What is printed, with each listed message on a separate line? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 170

Multiple choice Arrays
Given the following code snippet int[ ] values = {150, 34, 320, 2, 11, 100}; for (int i=0; i < values.length; i++) { if…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 161 of 1,222
Page 17 of 123