Verityprep
Question Bank

AP® Computer Science Principles Multiple Choice Questions

Work through AP Computer Science Principles 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 111–120 of 214
  1. 111
  2. 112
  3. 113
  4. 114
  5. 115
  6. 116
  7. 117
  8. 118
  9. 119
  10. 120

Question 111

Multiple choice Unit 4: Algorithms and Programming
A photographer has a collection of digital pictures, each using the same file-naming format: a date tag, followed by a description, followed by the file…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 112

Multiple choice Unit 4: Algorithms and Programming
A programmer wants to determine whether a score is within 10 points of a given target. For example, if the target is 50, then the scores 40, 44, 50, 58, and 60…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 113

Multiple choice Unit 4: Algorithms and Programming
Consider a game in which a player flips a fair coin three times. If all three coin flips have the same result (either all heads or…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 114

Multiple choice Unit 4: Algorithms and Programming
The procedure BinarySearch(numList, target) correctly implements a binary search algorithm on the list of numbers numList. The procedure returns an index where…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 115

Multiple choice Unit 4: Algorithms and Programming
Consider the following algorithms. Each algorithm operates on a list containing n elements, where n is a very large integer. I. An algorithm that accesses each…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 116

Multiple choice Unit 4: Algorithms and Programming
A biologist wrote a program to simulate the population of a sample of bacteria. The program uses the following procedures. Procedure Call Explanation…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 117

Multiple choice Unit 4: Algorithms and Programming
Assume that the list originalList contains integer values and that the list newList is initially empty. The following code segment is intended to copy all even…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 118

Multiple choice Unit 4: Algorithms and Programming
The following algorithm is intended to determine the average height, in centimeters, of a group of people in a room. Each person has a card, a pencil, and an…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 119

Multiple choice Unit 4: Algorithms and Programming
An online game collects data about each player's performance in the game. A program is used to analyze the data to make predictions about how players will…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 120

Multiple choice Unit 4: Algorithms and Programming
The following procedure is intended to return true if at least two of the three parameters are equal in value and is intended to return false otherwise.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 111 of 214
Page 12 of 22