Storage Class MCQs
Practice free Storage Class multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 35 questions — no login required.
Question 1easy
What is the default storage class for global variables?
Question 2easy
Which storage class is used for local variables?
Question 3easy
What is the primary purpose of the 'static' storage class?
Advertisement
Question 4easy
Which storage class specifies automatic storage duration?
Question 5easy
When does a 'register' storage class make sense to use?
Question 6easy
What is the significance of the 'extern' storage class?
Advertisement
Question 7easy
Which storage class allocates memory and retains its value between function calls?
Question 8easy
What is the maximum scope of a variable with 'static' storage class?
Question 9easy
What is the storage duration of a variable with 'auto' storage class?