C - Storage Classes of Variables Questions and Answers
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
12. The storage class type of external has
- persistent storage
- block scope
- file scope
- options a and c
13. Which storage class may help in faster execution ?
- static
- extern
- register
- auto
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
15. Identify the correct statement .
- typedef int HOST
- typedef int HOST;
- typedef int = HOST
- typedef int = HOST ;
16. The typedef statement does not
- create new data type
- reserve storage
- options a and b
- rename the data type
17. Which storage class specifies local variables ?
- auto
- register
- internal static
- all the above
18. Which storage class specifies global variables ?
- extern
- external static
- options a and b
- typedef
19. External variable declaration uses
- the keyword external
- the keyword extern
- no keyword such as extern or external
- the keyword register
20. External variable outside definition
- is specified outside definition
- reserves memory for storage
- is defined only once
- all the above