Loading...

C Multiple Choice Questions

Our C questions and answers focuses on all areas of C programming language covering 100+ topics in C

C Preprocessor-2 MCQs

C Preprocessor-2


1. What is the C keyword used to create global Constants?

a) constant
b) definition
c) def
d) define



2. What is the output file generated after processing a .C file?

a) .h file
b) .exe file
c) .cp file
d) .bak file



3. How do you safeguard your .C file code from copying by outside developers or world?

a) Encrypt a C file and share
b) Obfuscate a C file and share
c) Scramble a C file and share
d) Convert to Exe and share



4. How do you separate a multiline macro in C language?

a) Using * operator
b) Using % operator
c) Using \ operator
d) Using + operator



5. What is the file extension of expanded source code of .C file after preprocessing?

a) .e file
b) .h file
c) .l file
d) .p file



6. #include is called

a) Preprocessor directive
b) Inclusion directive
c) File inclusion directive
d) None of the mentioned



7.C preprocessors can have compiler specific features.

a) True
b) False



8. Which is correct about the following code?
#define FACT 1

a) conditional compilation
b) File inclusion
c) Macro
d) All of the above



9. Macro is generally written in

a) lower case letters
b) upper case letters
c) camel case letters
d) Any of the above



10. We can define macros with argument?

a) True
b) False



- Related Topics