Question Detail

COS 102 introduction to programming Objective Question

Question

What is the stated purpose of the 'Def' statement in the provided table of programming statements?
Options
A Output a message on the screen
B Get data from the user
C Create a loop controlled by a counter
D Create a procedure or function
Correct Answer
Correct Answer

Option D is the correct answer.

Detailed Explanation

The table on page 22 clearly states that the purpose of 'Def' is 'Create a procedure or function'.

Hint

Locate the table of statements and purposes on page 22.

Question Info