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 91–100 of 100
  1. 91
  2. 92
  3. 93
  4. 94
  5. 95
  6. 96
  7. 97
  8. 98
  9. 99
  10. 100

Question 91

Multiple choice Algorithms
The robot initially occupies bottom-left and faces right. Which diagram shows its final position…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 92

Multiple choice Algorithms
The robot in each grid starts facing left. It may enter white or shaded cells but not black cells. GoalReached() is true on the shaded cell. For which grid does…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 93

Multiple choice Algorithms
A computer system has the task times below. Based on the observed growth, which task is likely to take the longest for approximately 100000…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 94

Multiple choice Algorithms
onTime and absent are both false. What is displayed? IF(onTime){DISPLAY("Hello.")}…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 95

Multiple choice Algorithms
Under which of the following conditions is it most…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 96

Multiple choice Algorithms
Two algorithms find the mean height of 32 students. Which statement is true? Algorithm A: 1. All students stand. 2. One randomly selected student writes their…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 97

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

Question 98

Multiple choice Algorithms
morningList and afternoonList contain children attending each camp session. Only children in both sessions eat lunch.…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 99

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

Question 100

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

Question 91 of 100
Page 10 of 10