Which of the following CollegeBoard AP Computer Science Principles Pseudocode commands is used to record something typed by a user of the program so that it can be used in the program?
a. a MOD bb. RANDOM (a, b)c. DISPLAY (expression)d. INPUT ()

Respuesta :

Answer: Option D. INPUT ()

Explanation:

Pseudo code is a simple way of describing a set of instructions that do not have to use specific syntax.

a MOD b : Evaluates to the remainder when a is divided by b. Assumes that a and b are positive integers.

RANDOM(a, b) : Evaluates to a random integer from a to b, including a and b.

DISPLAY (expression):  Displays the value of expression, followed by a space.

INPUT (): Accepts a value from the user and returns it.

Thus, INPUT () is the correct option.

ACCESS MORE
EDU ACCESS