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.

Questions 131–140 of 1,079
  1. 131
  2. 132
  3. 133
  4. 134
  5. 135
  6. 136
  7. 137
  8. 138
  9. 139
  10. 140

Question 131

Multiple choice Arraylists
When is standard insertion sort…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 132

Multiple choice Arrays
Which of the following…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 133

Multiple choice Arrays
Which of the following are valid arrays? I. int[] coolArray = {1, 2, 3}; II.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 134

Multiple choice Arrays
What is the output of the following program? public class SayHello { public void run() { String stringArray[] =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 135

Multiple choice Arrays
You are working at the frozen yogurt shop in the mall. Your boss asks you to count how many flavors have the word chocolate in their name. You begin going…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 136

Multiple choice Arrays
What value does mysteryNumber hold afterward? int mysteryNumber = 0…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 137

Multiple choice Arrays
What does gameBoard contain afterward? int WIDTH=3, HEIGHT=3…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 138

Multiple choice Arrays
What is arr [4] afterward? int[]…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 139

Multiple choice Arrays
The nonempty int array may contain any int values. Which initializers always make findMin correct? I: Integer.MAX_VALUE.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 140

Multiple choice Sorting And Searching
Which describes ascending…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 131 of 1,079
Page 14 of 108