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 101–110 of 214
  1. 101
  2. 102
  3. 103
  4. 104
  5. 105
  6. 106
  7. 107
  8. 108
  9. 109
  10. 110

Question 101

Multiple choice Unit 4: Algorithms and Programming
A flowchart is a way to visually represent an algorithm. The flowchart below is used by an application to set the Boolean variable available to true under…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 102

Multiple choice Unit 4: Algorithms and Programming
Consider the following program. Which of the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 103

Multiple choice Unit 4: Algorithms and Programming
Which of the following best explains why it is not…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 104

Multiple choice Unit 4: Algorithms and Programming
Assume that the variables alpha and beta each are initialized with a numeric value. Which of the following code segments can be used to interchange the values…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 105

Multiple choice Unit 4: Algorithms and Programming
In the following program, assume that the variable n has been initialized with an…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 106

Multiple choice Unit 4: Algorithms and Programming
A student's overall course grade in a certain class is based on the student's scores on individual assignments. The course grade is calculated by dropping the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 107

Multiple choice Unit 4: Algorithms and Programming
The following question uses a robot in a grid of squares. The robot is represented by a triangle, which is initially facing toward the top of the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 108

Multiple choice Unit 4: Algorithms and Programming
A programmer notices the following two procedures in a library. The procedures do similar, but not identical, things. Procedure MaxTwo (x, y) returns the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 109

Multiple choice Unit 4: Algorithms and Programming
Consider the following procedure. Procedure Call Explanation DrawLine (x1, y1, x2, y2) Draws a line segment on a coordinate grid with endpoints at coordinates…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 110

Multiple choice Unit 4: Algorithms and Programming
Assume that the list of numbers nums has more than 10 elements. The program below is intended to compute and display the sum of the first 10 elements of nums.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 101 of 214
Page 11 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.