?

AP® Computer Science Principles

Free Version

Upgrade subject to access all content

Easy

Constant in a Program

APCSP-LQDKQT

Consider the following short program:

1.  pi  ← 3.14159
2.  r ← INPUT()
3.  a ← pi * r * r
4.  DISPLAY (a)

In the short program above, which is best thought of as a constant?

A
pi
B
r
C
a
D
pi * r * r