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 TypesThe 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,…

  1. A.

    Data Types

  2. B.

    Data Structure

  3. C.

    Scope Rules

  4. D.

    Control Structures

Attempted by 2351 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.

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…