文档详情

AP计算机科学原理 2021年题库 (选择题+问答题) AP Computer Science Principle 2021 Released Exam and Answers (MCQ+FRQ).pdf

发布:2025-04-04约21.15万字共101页下载文档
文本预览下载声明

®

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:

显示全部
相似文档