A ........... is the specification of legal values for variable of the type.
2024
A ........... is the specification of legal values for variable of the type.
Answer: A. Data Types — The question asks for the term that specifies the legal values a variable can hold. Data types define the set of permissible values that a variable can store,…
- A.
Data Types
- B.
Data Structure
- C.
Scope Rules
- D.
Control Structures
Attempted by 2350 students.
Show answer & explanation
Correct answer: A
The question asks for the term that specifies the legal values a variable can hold.
Data types define the set of permissible values that a variable can store, such as integers, characters, or booleans. This specification ensures that the variable is used correctly within the program.
This distinguishes data types from data structures, which organize multiple data elements, or scope rules, which define variable visibility.