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: Algorithms Clear filter

Questions 21–30 of 49
  1. 21
  2. 22
  3. 23
  4. 24
  5. 25
  6. 26
  7. 27
  8. 28
  9. 29
  10. 30

Question 21

Multiple choice Algorithms
What is displayed? a ← 5 b ← 7 c ← 10…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 22

Multiple choice Algorithms
A student is creating a procedure that takes a nonempty list of integers as input. The list is unsorted and contains no duplicate values. The procedure is…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 23

Multiple choice Algorithms
height is an integer. Which describes the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 24

Multiple choice Algorithms
A student develops a program that periodically prompts the user to enter a password. The program then verifies the password before the user is able to continue.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 25

Multiple choice Algorithms
points is a positive integer. The flowchart should display Platinum Level for points ≥100, Gold Level for 50–99, and Basic Level otherwise.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 26

Multiple choice Algorithms
The procedure takes a list of positive integers. What does it return? PROCEDURE…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 27

Multiple choice Algorithms
A programmer wants to use a binary search algorithm to search for a number in a list of numbers. For which of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 28

Multiple choice Algorithms
What value does this procedure…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 29

Multiple choice Algorithms
For a certain service, users give ratings on a scale from 0.0 to 5.0. Ratings of 4.0 or greater are considered good, and ratings less than 4.0 are considered…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 30

Multiple choice Algorithms
The program should sum the odd integers from 1 through n, where n>1 is odd. For n=5, the sum should be 1+3+5=9. Which change repairs…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 21 of 49
Page 3 of 5