C - Storage Classes of Variables

C - Storage Classes of Variables
1. Storage class controls
  • lifetime of a variable
  • scope of a variable
  • linkage of a variable
  • all the above
Show Answer
2. Longevity of a variable refers to
  • the duration for which the variable retains a given value during the execution of a program
  • the portion of a program in which the variable may be visible.
  • internal linkage of a variable
  • external linkage of a variable.
Show Answer
3. scope of a variabe the refers to
  • the duration for which the variable retains a given value during the execution of a program
  • the portion of a program in which the variable may be visible.
  • the value of the variable
  • linkage of a variable.
Show Answer
4. A variable with external linkage refers to
  • the duration for which the variable retains a given value during the execution of a program
  • the same value for every occurence of that variable in a particular file.
  • the same value in every source file where source program spans over multiple files.
  • block scope.
Show Answer
5. A variable with internal linkage erfers to
  • the duration for which the variable retains a given value during the execution of a program.
  • the same value for every occurence of that variable in a particular file.
  • the same value in every source file where source program spans over multiple files
  • block scope.
Show Answer
6. A variable with no linkage refers to
  • the duration for which the variable retains a given value during the execution of a program.
  • the same value for every occurence of that variable in a particular file.
  • the same value in every source file where source program spans over multiple files.
  • block scope.
Show Answer
7. Which is not a storage class ?
  • auto
  • struct
  • typedef
  • static
Show Answer
8. The automatic storage class has
  • temporary storage
  • block scope
  • persistent storage
  • options a and b
Show Answer
9. The regiester storage class has
  • temporary storage
  • block scope
  • persistent storage
  • options a and b
Show Answer
10. The storage class type of internal static has
  • persistent storage
  • block scope
  • file scope
  • options a and b
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test