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.

Questions 61–70 of 100
  1. 61
  2. 62
  3. 63
  4. 64
  5. 65
  6. 66
  7. 67
  8. 68
  9. 69
  10. 70

Question 61

Multiple choice Algorithms
KeepPlaying is intended to ask whether a user wants to keep playing. Which describes its actual result? PROCEDURE KeepPlaying(){…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 62

Multiple choice Variables and Assignments
Which best describes this program? count ← 1 sum ← 0 REPEAT…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 63

Multiple choice Variables and Assignments
Concat(str1,str2) joins the two strings. Substring(str,start,length) takes length characters from…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 64

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 65

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 66

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 67

Multiple choice Conditionals and Loops
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.

Question 68

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 69

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 70

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 61 of 100
Page 7 of 10