Verityprep
Question Bank

AP® Computer Science Principles Multiple Choice Questions

Work through AP Computer Science Principles multiple-choice 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 151–160 of 214
  1. 151
  2. 152
  3. 153
  4. 154
  5. 155
  6. 156
  7. 157
  8. 158
  9. 159
  10. 160

Question 151

Multiple choice Unit 4: Algorithms and Programming
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 152

Multiple choice Unit 4: Algorithms and Programming
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 153

Multiple choice Unit 4: Algorithms and Programming
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 154

Multiple choice Unit 4: Algorithms and Programming
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 155

Multiple choice Unit 4: Algorithms and Programming
height is an integer. Which describes the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 156

Multiple choice Unit 4: Algorithms and Programming
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 157

Multiple choice Unit 4: Algorithms and Programming
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 158

Multiple choice Unit 4: Algorithms and Programming
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 159

Multiple choice Unit 4: Algorithms and Programming
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 160

Multiple choice Unit 4: Algorithms and Programming
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 151 of 214
Page 16 of 22