SEED Infotech Ltd. Official Curriculum Basic ‘C’ Programming: Variables Linkage Quiz

IngenuousAmber avatar
IngenuousAmber
·
·
Download

Start Quiz

Study Flashcards

12 Questions

What is the characteristic of static variables declared in function scope?

Have no linkage

How are external variables defined and accessed in a C program?

Declared outside any function and are accessible globally

Which section of memory stores static variables in C programs?

Data section

What is the default initial value for external variables in C?

Initialized to zero

What is the scope of extern variables in a C program?

Global, accessible from any function within the program

Which type of linkage do global variables have in C programs?

External linkage

What type of linkage does the global variable 'rateOfInt' have?

External linkage

Where is the global variable 'rateOfInt' stored in memory?

In the data section

What is the initial value of the global variable 'rateOfInt'?

9.75

When is the value of 'rateOfInt' accessed in the dispBal() function?

Only when dispBal() is first called

Which part of the memory retains the value of 'rateOfInt' between different function calls?

Data section

What type of directive is a preprocessor directive in C programs?

'#'-starting instruction

Test your knowledge on variables linkage in 'C' programming based on SEED Infotech Ltd.'s official curriculum. This quiz covers topics like static variables in function scope, initialization, retention of values between function calls, and external variables.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free
Use Quizgecko on...
Browser
Browser