C - Storage Classes of Variables Questions and Answers

Practice Mode
Showing 10 of 33 questions
Q11
The storage class type of external static has
  • A persistent storage
  • B block scope
  • C file scope
  • D options a and c
Answer: Option D
Q12
The storage class type of external has
  • A persistent storage
  • B block scope
  • C file scope
  • D options a and c
Answer: Option D
Q13
Which storage class may help in faster execution ?
  • A static
  • B extern
  • C register
  • D auto
Answer: Option C
Q14
The typedef statement is used to
  • A create a new data type
  • B rename the existing data type
  • C to define a storage class
  • D create a structure
Answer: Option B
Q15
Identify the correct statement .
  • A typedef int HOST
  • B typedef int HOST;
  • C typedef int = HOST
  • D typedef int = HOST ;
Answer: Option B
Q16
The typedef statement does not
  • A create new data type
  • B reserve storage
  • C options a and b
  • D rename the data type
Answer: Option C
Q17
Which storage class specifies local variables ?
  • A auto
  • B register
  • C internal static
  • D all the above
Answer: Option D
Q18
Which storage class specifies global variables ?
  • A extern
  • B external static
  • C options a and b
  • D typedef
Answer: Option C
Q19
External variable declaration uses
  • A the keyword external
  • B the keyword extern
  • C no keyword such as extern or external
  • D the keyword register
Answer: Option B
Q20
External variable outside definition
  • A is specified outside definition
  • B reserves memory for storage
  • C is defined only once
  • D all the above
Answer: Option D
Questions and Answers for Competitive Exams Various Entrance Test