AP® Computer Science Principles

Free Version

Upgrade subject to access all content

Moderate

Procedures

APCSP-8GIEF0

Will is creating a game in which he needs to be able to retrieve the highest score from an online database. Since he will be doing this several times in the program, he writes the code for retrieving the highest score and calls this set of instructions “getScore”.

This is called a(n)

A

definition.

B

procedure.

C

hypothesis.

D

algorithm.