25
QuizMultiple Choice

Resources for Programmers — Unit test

Question 25 • Introduction to Information Technology - EL3701

An argument is different from a parameter in that an argument

Answer
A
refers to a piece of data to be supplied.
B
is a placeholder for a constant value.
C
is the data passed into a parameter.
D
is always variable.

Explanation

A parameter is a placeholder named in a function definition, while an argument is the actual value or data supplied when the function is called. For example, in `greet("Sam")`, the parameter might be `name`, and the argument is `"Sam"`. So the argument is the data passed into a parameter, making choice C correct.

AI-written and checked against the verified answer.