36.
A preprocessor directive is a message from programmer to the preprocessor.
A. True
B. False
Answer: Option A
Explanation:
True, the programmer tells the compiler to include the preprocessor when compiling.
37.
Macro calls and function calls work exactly similarly.
A. True
B. False
Answer: Option B
Explanation:
False, A macro just replaces each occurrence with the code assigned to it. e.g. SQUARE(3) with ((3)*(3)) in the program.
A function is compiled once and can be called from anywhere that has visibility to the funciton.
38.
A macro must always be defined in capital letters.
A. True
B. False
Answer: Option B
Explanation:
FALSE, The macro is case insensitive.
39.
Macros have a local scope.
A. True
B. False
Answer: Option B
Explanation:
False, The scope of macros is globals and functions. Also the scope of macros is only from the point of definition to the end of the file.
40.
Every C program will contain at least one preprocessor directive.
A. True
B. False
Answer: Option B
Explanation:
False, the preprocessor directive is not mandatory in any c program.