UNIT – 12
THE C PREPROCESSOR
1) The ______ is a program that is executed before the source code is compiled.
a) *C – Processor b)pointer c)Union d)None
2) C processor commands are called ________
a)dictionary b)*directives c)pointers d)None
3) All c-processor commands are begin with a ____ symbol.
a)* b)& c)* # d) None
4) No semi colon is not required at the end of c-processor. (true / false)
a)*true b)false d) None
5) The _____ directive is used to define a macro substitution .
a)* #define b)#if c) #undef d) None
6) The _____ directive is used to undefine a macro substitution .
a) #define b) #if c) *#undef d)None
7) The _____ directive is used to undefine a macro substitution .
a) #define b)*#if c)if d)None
8) The _____ directive is used to specifies the end of #if .
a) *#endif b) #ifend c)#undef d)None
9) The _____ directive is used to test whether a macro is not defined
a) #ifdef b)*#ifndef c)#undef d)None
10) A external file can be included as part of a program by using ______.
a)*#include<> b)#define c)#filename d)None
11) ______ files contain details of functions and types used within the library.
a)*Header file b)Text file c)Binary file d)None
12) Library header file names are enclosed with in _______
a)“ “ b)*Angle bracket c) ( ) d) None
13) #ifdef returns _____ if the name has already been defined.
a)*True b)False c)Null d) None
14) ____ takes the name as argument and checks whether it has been defined or not.
a)*#ifndef b)#ifdef c)#defined d) None
15) The directives are read by the C-Processor , ______ main() is executed.
a)After b)*Before c)any time d) None
UNIT – 12
THE C PREPROCESSOR
1 A 2 B 3 C 4 A 5 A
6 C 7 B 8 A 9 B 10 A
11 A 12 B 13 A 14 A 15 B