AP Computer Science Principlesmediummcq1 pt
An if statement is used to
A.run code only when a condition is true
B.repeat code forever
C.define a variable
D.print text
Conditionals branch on a test.
Arun code only when a condition is true
Practice more AP Computer Science Principles questions with full explanations
Practice Unit 3: Algorithms and Programming Questions →