C - Storage Classes of Variables

C - Storage Classes of Variables
21. External variable definition uses
  • the keyword external
  • the keyword extern
  • no keyword
  • the keyword auto
Show Answer
22. External variable requires
  • declaration
  • definition
  • options a and b
  • initialization only
Show Answer
23. If the definition of an external variable does not contain an initializer, it is known as
  • forward declaration
  • tentative definition
  • backward reference
  • backward definition
Show Answer
24. External variable definition
  • creates the variable
  • allocates memory
  • does not use extern keyword
  • all the above
Show Answer
25. External variable delaration
  • does not allocate memory
  • uses keyword extern
  • cannot be initialized
  • all the above
Show Answer
26. The data type that cannot be renamed by typedef is
  • function
  • pointer
  • options a and b
  • double
Show Answer
27. What are the valid C scopes of identifiers ?
  • external and local
  • project, file, and block
  • global, file and local
  • file and block
Show Answer
28. How is a variable accessed from another file ?
  • The global variable is referenced via the global specifier.
  • The global variable is referenced via the extern specifier.
  • The global variable is referenced via the auto specifier.
  • The global variable is referenced via the pointer specifier.
Show Answer
29. Which of the following is/are achieved using typedef facility ?
  • increase the portability of code
  • write more compact code
  • only option b
  • neither option a nor b
Show Answer
30. What does invoking the C compiler accomplish ?
  • It links together object files.
  • It creates machine code.
  • Itonly provides code evaluation. You must use thelinker to assemble and link program.
  • It interprets files at run-time.
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test