Question Bank · Unit 4
AP® Computer Science Principles Algorithms and Programming Practice Questions
Work through AP Computer Science Principles practice questions on Algorithms and Programming, 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.
All 100
Multiple choice 100
Free response 0
Subtopic: Conditionals and Loops
Clear filter
What is displayed? first ← 10 second ← 20 third ← 30…
Sign up now. It's free!
See the full question with its answer and worked solution.
The robot starts facing up. It can enter white or shaded squares but not black squares. Which code reaches the shaded…
Sign up now. It's free!
See the full question with its answer and worked solution.
What is the result of running the code? i ← 0 sum ← 0…
Sign up now. It's free!
See the full question with its answer and worked solution.
A two-floor elevator’s door is already closed. Which condition makes it move exactly when called to the other floor?…
Sign up now. It's free!
See the full question with its answer and worked solution.
Page 3 of 3
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.