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 10easy
In which storage class is the variable's storage duration throughout the program's execution?
Question 11easy
Which storage class is used for function arguments by default?
Question 12easy
What is the primary advantage of using 'register' storage class for variables?
Advertisement
Question 13medium
What storage class should be used for a variable that needs to be shared across multiple source files?
Question 14medium
In which storage class is the variable's storage duration limited to the function where it's declared?
Question 15easy
Which storage class is often used for variables with block scope within functions?
Advertisement
Question 16easy
What storage class is used for function parameters in C by default?
Question 17easy
Which storage class is used to define variables that are not initialized to any default value?
Question 18easy
When is memory allocated for a 'static' variable in C?