Verityprep
Question Bank · Unit 4

AP® Computer Science Principles Algorithms and Programming Multiple Choice Questions

Work through AP Computer Science Principles multiple-choice 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.

Subtopic: Procedures Clear filter

Questions 1–6 of 6
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6

Question 1

Multiple choice Procedures
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 2

Multiple choice Procedures
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 3

Multiple choice Procedures
The robot starts at bottom-right facing up. Both programs intend to reach the shaded square. Which statement is true? Program I: REPEAT 4 TIMES…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 4

Multiple choice Procedures
Both programs intend to display the average of numList, which contains more than one value. Which statement is correct? Program I: sum ← 0 FOR EACH num IN…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 5

Multiple choice Procedures
Course points are the midterm plus final score, except that a higher final score replaces the midterm score. Thus Khalil keeps both original scores, while…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 6

Multiple choice Procedures
□(n) returns n^2 and Cube(n) returns…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 1 of 6