33
QuizMultiple Choice

Use Data Structures — Cumulative exam

Question 33 • Introduction to Information Technology - EL3701

Variables differ from values in that

Answer
A
variables are always letters of the alphabet and values are always numbers.
B
a variable is a symbol or a placeholder while a value is assigned to a variable as the result of a function.
C
a variable is accessible from anywhere in a program while a value is accessible only in one situation.
D
a variable is defined by the programmer while a value is defined by the program.

Explanation

A variable is a named symbol or placeholder whose contents can change. A value is the data currently assigned to that variable, whether it is produced by a function or supplied another way. Variables and values are not limited to letters and numbers, and their accessibility depends on scope, so choices A and C are not generally true.

AI-written and checked against the verified answer.

Previous
Next