Question Detail

COS 102 2 lecture week 3 Objective Question

Question

What is the stated purpose of the 'Print' statement in the programming statements table?
Options
A To get data from the user.
B To create a procedure or function.
C To output a message on the screen.
Correct Answer
D To control a loop based on a decision.
Correct Answer

Option C is the correct answer.

Detailed Explanation

On Slide 22, the table clearly indicates that the 'Print' statement's purpose is to 'Output a message on the screen'.

Hint

Think about what a 'print' function typically does in most programming languages.

Question Info