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 1 · Using Objects & Methods Flashcards Cheat Sheet Essentials Visual Review MC Practice FRQ Practice

AP Computer Science A Unit 1 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 1 hub
Question 1 of 15 Score: 0/0

Strategy tips

Trace the code carefully: track each variable’s value step by step.

Watch integer division and precedence: int / int truncates, and * / % come before + −.

Remember String indices start at 0 and substring(from, to) excludes to.

Read the explanations even when you got it right, and use the Java Quick Reference for method signatures.