C - Storage Classes of Variables Questions and Answers

Take Exam

C Storage Classes of Variables MCQ questions with answers focus on auto, static, extern, and register storage classes. Understanding these concepts is essential for mastering memory management and variable scope in C programming. These programming questions and answers are frequently asked in interviews and placement exams conducted by Wipro, TCS, and Infosys. Practicing MCQs on C storage classes helps improve your grasp of variable lifetime, linkage, and accessibility. Download the C programming MCQ PDF and attempt online practice tests to build a strong foundation in variable management.

C - Storage Classes of Variables

Showing 10 of 33 questions

11. The storage class type of external static has

  • persistent storage
  • block scope
  • file scope
  • options a and c
Show Answer Report

12. The storage class type of external has

  • persistent storage
  • block scope
  • file scope
  • options a and c
Show Answer Report

13. Which storage class may help in faster execution ?

  • static
  • extern
  • register
  • auto
Show Answer Report

14. The typedef statement is used to

  • create a new data type
  • rename the existing data type
  • to define a storage class
  • create a structure
Show Answer Report

15. Identify the correct statement .

  • typedef int HOST
  • typedef int HOST;
  • typedef int = HOST
  • typedef int = HOST ;
Show Answer Report

16. The typedef statement does not

  • create new data type
  • reserve storage
  • options a and b
  • rename the data type
Show Answer Report

17. Which storage class specifies local variables ?

  • auto
  • register
  • internal static
  • all the above
Show Answer Report

18. Which storage class specifies global variables ?

  • extern
  • external static
  • options a and b
  • typedef
Show Answer Report

19. External variable declaration uses

  • the keyword external
  • the keyword extern
  • no keyword such as extern or external
  • the keyword register
Show Answer Report

20. External variable outside definition

  • is specified outside definition
  • reserves memory for storage
  • is defined only once
  • all the above
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test