C programming MCQ : Preprocessor Directives(MULTIPLE CHOICE QUESTION)

This set of C programming questions focuses on the Preprocessor Directive. Firstly, you will have to read all the questions and after that select the appropriate option. Moreover, each question contains four options, out of them only one option will be correct. If you fail to select the correct option, don’t worry, you can try again at the end of the quiz by clicking on “try again”. You can use Previous and Next button to switch to a different set of questions.

In the last set of MCQs, we were introduced to Preprocessor Directives. There, we have discussed some questions to get the basic idea of directives. Now, in this set again, you will find some more questions on Preprocessor Directive.

TEST INSTRUCTIONS: Click on options to see the answer.

Now, start attempting the quiz. Best of luck!

#1. If the file to be included doesn't exist, the preprocessor flashes an error message.

#2. Which of the following are correctly formed #define statements in C?

#3. C preprocessor is conceptually the first step during compilation.

#4. What will be the output of the following C code?
(for code refer to Image-1 at the end of quiz)

#5. #pragma exit is primarily used for?

#6. The purpose of the preprocessor directive #error is that ___

#7. In which stage the following code
#include<stdio.h> gets replaced by the contents of the file stdio.h

#8. It is necessary that a header files should have a .h extension.

#9. #include statement must be written

#10. Which of the following is not a preprocessor directive?




If you scored less. Don’t worry! You can attempt any number of times.

Wants to explore all the topics of C programming? Here, is the complete set of Multiple Choice Questions and Answers. These question sets are very helpful in preparing for Competitive Exams as well as for University level exams.

All the answers in this set are correct. But in case, you find any typographical, grammatical or any other error in out site then kindly inform us. Don’t forget to provide the appropriate URL along with the error description.

Thanks in advance.

For discussion about any question, join the below comment section. And get the solution of your query.

1 thought on “C programming MCQ : Preprocessor Directives(MULTIPLE CHOICE QUESTION)”

  1. For the reason that the admin of this site is working, no doubt very quickly it will
    be renowned, due to its feature contents.

Comments are closed.