AP计算机科学原理 2021年题库 (选择题+问答题) AP Computer Science Principle 2021 Released Exam and Answers (MCQ+FRQ).pdf
®
APComputerScience
Principles
PracticeExam
andNotes
Effective
2021
COMPUTERSCIENCEPRINCIPLES
Time—2hours
70Questions
Programmingreferencematerialsareincludedonthefollowingpages.AsAPComputerSciencePrinciplesdoesnot
designateanyparticularprogramminglanguage,thesereferencematerialsprovideinstructionsandexplanationstohelp
youunderstandtheformatandmeaningofthequestionsyouwillseeontheexam.Thereferencematerialsincludetwo
programmingformats,text-basedandblock-based.
Programminginstructionsusefourdatatypes:numbers,Booleans,strings,andlists.
Instructionsfromanyofthefollowingcategoriesmayappearontheexam:
•Assignment,Display,andInput
•ArithmeticOperatorsandNumericProcedures
•RelationalandBooleanOperators
•Selection
•Iteration
•ListOperations
•ProceduresandProcedureCalls
•Robot
APComputerSciencePrinciplesPracticeExam7
REFERENCEMATERIALS
InstructionExplanation
Assignment,Display,andInput
Text:Evaluatesexpressionandthenassignsacopy
a←expressionoftheresulttothevariablea.
Block:
Text:Displaysthevalueofexpression,followedby
DISPLAY(expression)aspace.
Block: