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 171–180 of 214
  1. 171
  2. 172
  3. 173
  4. 174
  5. 175
  6. 176
  7. 177
  8. 178
  9. 179
  10. 180

Question 171

Multiple choice Unit 4: Algorithms and Programming
list1 and list2 are nonempty lists sorted least to greatest. Both algorithms intend to combine all their elements into a sorted newList. Which statement is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 172

Multiple choice Unit 4: Algorithms and Programming
A teacher uses the table below to assign letter grades based on a numerical score. Numerical Score 90–100 80–89 70–79 60–69 0–59 Letter Grade A B C D F The…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 173

Multiple choice Unit 4: Algorithms and Programming
The program should put originalList in random order into initially empty resultList, leaving originalList empty. Which replacement works?…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 174

Multiple choice Unit 4: Algorithms and Programming
wordList is a nonempty list of strings. What happens when targetWord does not occur in it? PROCEDURE…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 175

Multiple choice Unit 4: Algorithms and Programming
Which task is most likely…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 176

Multiple choice Unit 4: Algorithms and Programming
Two identical processors run independent jobs. Each processor can run one job at a time, and a job cannot be split…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 177

Multiple choice Unit 4: Algorithms and Programming
Choose two of 28 students so every pair is equally likely. Initially assign unique labels 1–28. Generate j uniformly from 1–28 and have student j…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 178

Multiple choice Unit 4: Algorithms and Programming
A programmer completes the user manual for a video game she has developed and realizes she has reversed the roles of goats and sheep throughout the text.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 179

Multiple choice Unit 4: Algorithms and Programming
⚠️ The figure below shows a circuit composed of two logic gates. An OR gate receives two inputs: false and A. The output of the OR gate feeds…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 180

Multiple choice Unit 4: Algorithms and Programming
The robot initially occupies bottom-left and faces right. Which diagram shows its final position…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 171 of 214
Page 18 of 22