SAT / PSAT
SAT / PSAT Prep
History & Social Science
AP World History AP US History AP European History AP Human Geography AP US Government & Politics AP Psychology AP Macroeconomics AP Microeconomics
English
AP English Language & Composition AP English Literature & Composition
Math & Computer Science
AP Calculus AB/BC AP Precalculus AP Statistics AP Computer Science A AP Computer Science Principles
Sciences
AP Biology AP Chemistry AP Environmental Science AP Physics 1 AP Physics 2
World Languages & Arts
AP Spanish Language AP Art History AP Music Theory Start studying →
Unit 3 · Algorithms & Programming Flashcards Cheat Sheet Essentials Visual Review MC Practice FRQ Practice

AP Computer Science Principles Unit 3 Practice Questions

35 multiple-choice questions in College Board exam style. Each has four choices and a full explanation of why each option is right or wrong.

← Back to Unit 3 hub
Question 1 of 35 Score: 0/0

Strategy tips

Trace code carefully. Track each variable's value line by line, and watch loop bounds for off-by-one errors.

MOD is the remainder; binary search needs a sorted list. These come up often.

Think about efficiency, not just correctness: how does the number of steps grow with input size?

Read the explanations even when you got it right, and re-check AND vs. OR conditions.