C Programming
C PREPROCESSOR MCQs
Total Questions : 43
Page 1 of 5 pagesUnless the header file has taken care to ensure that if already included it doesn't
get included again.
Turbo C, GCC compilers would take care of these problems, generate no error.
Yes, this program will compile and run successfully and prints 20.
The macro #ifdef NOTE evaluates the given expression to 1. If satisfied it executes the
#ifdefblock statements. Here #ifdef condition fails because the Macro NOTE is nowhere declared.
Hence the #else block gets executed, the variable a is declared and assigned a value of 20.
printf("%dn", a); It prints the value of variable a 20.
No, the header files have any kind of extension.
Because typedef goes to work after preprocessing.
Reports an error: Undefined symbol 'X'
True, After preprocessing all the macro in the program are removed.
FALSE
Example: #define symbol replacement
When the preprocessor encounters #define directive, it replaces any occurrence of symbol in
the rest of the code by replacement. This replacement can be an statement or expression or a
block or simple text.
False, the preprocessor cannot trap the errors, it only replaces the macro with the given
expression. But the compiler will detect errors.
True, the header file contains classes, function prototypes, structure declaration, macros.
False, Always the macro is substituted by the given text/expression.
Recent Questions
Q. Reduced Distance Between Last Operating Comb And Drawing Uni....
Q. Lactic Acid Is Formed In ______.
Q. A Varactor Diode Is Used For
Q. Arun Said, "This Girl Is The Wife Of The Grandson Of My Moth....
Q. A Man Swims Relative To Water With A Velocity Greater Than R....
Q. A Dealer Allows A Discount Of 15%. A Customer Pays An Amount....
Q. A Sanguine Outlook Is Associated With The ......
Q. A URL Specifies The Following : (i) Protocol Used (ii) Domai....
Q. Q Factor For A Series Resonant Circuit Is?
Q. Which Of The Following Is Not A Component Of Working Capital....
Q. Indipaisa Has Signed A Partnership Agreement With Which Paym....
Q. Cell Membrane Is Virtually Impermeable To All Ions Except
Q. Media Used For The Production Of Chlorotetracyclin Consists ....
Q. Euler's Equation Of Motion Is A Statement Expressing
Q. Which Command Allows You To View Your File 24 Lines At A Tim....
Q. Which Of The Following Branch Of Physics Deal With Study Of ....
Q. If Nucleon (mass) And Proton (atomic) Number Is 40 And 20 Re....
Q. in One Hour, A Boat Goes 11 Km . Along The Steam And 5 Km ....
Q. In Addition To The RNA Polymerase, There Are Also A Number O....
Q. Width Of Complete Chain Of Cellulose Fibre Is