 
			 
			MCQOPTIONS
 Saved Bookmarks
				This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your C knowledge and support exam preparation. Choose a topic below to get started.
| 1. | Which among the following is not a preprocessor directive? | 
| A. | #ifdef | 
| B. | #pragma | 
| C. | #Or | 
| D. | #undef | 
| Answer» D. #undef | |
| 2. | Which preprocessor directive among the following forces the compiler to stop the compilation? | 
| A. | #warning | 
| B. | #endregion | 
| C. | #undef | 
| D. | #error | 
| Answer» E. | |
| 3. | What does preprocessor directive #if and #endif explains? | 
| A. | Enables compilation of sequence of code on condition basis | 
| B. | Express results into true or false on evaluation of condition | 
| C. | If expression following #if is true then code that is between #if and #endif is compiled otherwise skipped | 
| D. | All of the mentioned | 
| Answer» E. | |
| 4. | Select the defined preprocessor in C#.NET? | 
| A. | #define | 
| B. | #elif | 
| C. | #else | 
| D. | All of the mentioned | 
| Answer» E. | |
| 5. | What is meant by preprocessor directive #define? | 
| A. | defines a character sequence | 
| B. | helps in determining existence and non existence of a symbol | 
| C. | can be used to create function like macros as in C/C++ | 
| D. | all of the mentioned | 
| Answer» B. helps in determining existence and non existence of a symbol | |
| 6. | What is meant by preprocessor directive in C#.NET? | 
| A. | a form of command which are interpreted by the compiler | 
| B. | a form of macros like in c and c++ not exactly same to them, separately designed for C#.NET | 
| C. | always begins with a ‘#’ character occupies separate line of source of code | 
| D. | all of the mentioned | 
| Answer» E. | |
| 7. | Choose the symbol which begins a preprocessor directive in C#.NET? | 
| A. | # | 
| B. | ** | 
| C. | * | 
| D. | & | 
| Answer» B. ** | |