Vidyalelo
C Programming · all questions

Storage Class
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

35

Questions

1/2

Page

Pick an option on a question to see the right answer and solution.

What is the default storage class for global variables?

Select an option to see the answer and solution.

Which storage class is used for local variables?

Select an option to see the answer and solution.

What is the primary purpose of the 'static' storage class?

Select an option to see the answer and solution.

Which storage class specifies automatic storage duration?

Select an option to see the answer and solution.

When does a 'register' storage class make sense to use?

Select an option to see the answer and solution.

What is the significance of the 'extern' storage class?

Select an option to see the answer and solution.

Which storage class allocates memory and retains its value between function calls?

Select an option to see the answer and solution.

What is the maximum scope of a variable with 'static' storage class?

Select an option to see the answer and solution.

What is the storage duration of a variable with 'auto' storage class?

Select an option to see the answer and solution.

In which storage class is the variable's storage duration throughout the program's execution?

Select an option to see the answer and solution.

Which storage class is used for function arguments by default?

Select an option to see the answer and solution.

What is the primary advantage of using 'register' storage class for variables?

Select an option to see the answer and solution.

What storage class should be used for a variable that needs to be shared across multiple source files?

Select an option to see the answer and solution.

In which storage class is the variable's storage duration limited to the function where it's declared?

Select an option to see the answer and solution.

Which storage class is often used for variables with block scope within functions?

Select an option to see the answer and solution.

What storage class is used for function parameters in C by default?

Select an option to see the answer and solution.

Which storage class is used to define variables that are not initialized to any default value?

Select an option to see the answer and solution.

When is memory allocated for a 'static' variable in C?

Select an option to see the answer and solution.

Which storage class should be used for a variable that should be accessed quickly and frequently?

Select an option to see the answer and solution.

What is the primary difference between 'auto' and 'register' storage classes?

Select an option to see the answer and solution.