Verityprep
Question Bank

AP® Computer Science Principles Practice Questions

Work through AP Computer Science Principles practice 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 121–130 of 214
  1. 121
  2. 122
  3. 123
  4. 124
  5. 125
  6. 126
  7. 127
  8. 128
  9. 129
  10. 130

Question 121

Multiple choice Unit 4: Algorithms and Programming
Consider two lists of numbers called list1 and list2. A programmer wants to determine how many different values appear in both lists. For example, if list1…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 122

Multiple choice Unit 4: Algorithms and Programming
The code is intended to swap first and second using temp. Which…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 123

Multiple choice Unit 4: Algorithms and Programming
Which of the following would be…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 124

Multiple choice Unit 4: Algorithms and Programming
A movie theater charges $12 for a regular ticket and $9 for children aged 12 or younger and seniors aged 60 or older. A 3-D movie costs an additional $5. age is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 125

Multiple choice Unit 4: Algorithms and Programming
What is displayed by this program? start ← 1 end ← 20 current ← 3…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 126

Multiple choice Unit 4: Algorithms and Programming
Which is a benefit of iterative…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 127

Multiple choice Unit 4: Algorithms and Programming
A spinner has Red, Blue and Yellow sectors. Red is four times the size of each of the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 128

Multiple choice Unit 4: Algorithms and Programming
Which best compares the values displayed by programs A and B? Program A: i ← 1 REPEAT…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 129

Multiple choice Unit 4: Algorithms and Programming
A user reads reviews of a popular artist's new album and then downloads the album from the Web site of a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 130

Multiple choice Unit 4: Algorithms and Programming
A researcher predicts community births using ten years of population and birth data. The model…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 121 of 214
Page 13 of 22

AP® and Advanced Placement® are registered trademarks of the College Board, which is not affiliated with, and does not endorse, Verityprep. Names are used for identification purposes only.