Verityprep
Question Bank

AP® Computer Science A Multiple Choice Questions

Work through AP Computer Science A multiple-choice questions unit by unit, 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 2,111–2,120 of 2,811
  1. 2111
  2. 2112
  3. 2113
  4. 2114
  5. 2115
  6. 2116
  7. 2117
  8. 2118
  9. 2119
  10. 2120

Question 2111

Multiple choice Unit 4: Data Collections
What does t(5) return? // Precondition: n is positive. public int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2112

Multiple choice Unit 4: Data Collections
How many calls to t occur for t(6), including the initial call? // Precondition: n is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2113

Multiple choice Unit 4: Data Collections
What value does f1(5,3) return? public int f1(int a,int b) { if(a==b)…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2114

Multiple choice Unit 4: Data Collections
Assuming mathematical integer arithmetic without overflow, what is z? public int…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2115

Multiple choice Unit 4: Data Collections
Which factors matter when choosing a sorting algorithm? I:…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2116

Multiple choice Unit 4: Data Collections
What safely completes a left-to-right search that returns the matching index…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2117

Multiple choice Unit 4: Data Collections
Which property lets binary search discard a half,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2118

Multiple choice Unit 4: Data Collections
For the best standard algorithms on random-access arrays, which operation has a better worst-case asymptotic time bound on sorted…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2119

Multiple choice Unit 4: Data Collections
A sorted-array search probes every third element from the front, then checks up to two preceding entries in the first…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2120

Multiple choice Unit 4: Data Collections
For a nonempty array,…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 2,111 of 2,811
Page 212 of 282