Computer Science, asked by adityachoudaha543, 11 months ago

Which of the following is NOT determined by the type of a variable? 1 . The number of bits needed to store it in memory. 2. How to interpret the stored bits. 3. The scope of the variable.

Answers

Answered by adityaujwall
25

Answer:

Explanation:Which of the following is NOT determined by the type of a variable? 1 . The number of bits needed to store it in memory. 2. How to interpret the stored bits. 3. The scope of the variable.

Answered by AskewTronics
7

Option 3 is the correct answer for the above question

Explanation:

  • The data type of a variable is used to tell the compiler which type of variable is it. In any programming language, there are so many data types. It is also used to tell the compiler that how many bits of address space is required for its in memory.
  1. The first option states that the variable is used to define that how much bits are needed to store on the memory which is correct because when the user declares a variable type then it is used to allocate the memory space. Just for example for int, it is 2 byte and for char, it is 1 byte.
  2. The second option states that the data type of variable states to interpret the value which is stored which is also correct.
  3. But the third option states that the data type of variable states about the scope of a variable but the scope of a variable is defined by the function on which the variable is defined. The question asked about the incorrect statement. So the answer is option 3 because it is an incorrect statement.

Learn More:

  • Data types: https://brainly.in/question/8155749
  • Types of data types : https://brainly.in/question/11062439
Similar questions