MCQs
Total Questions : 10
Answer: Option C. -> #define
#define
Answer: Option A. -> #
#
Answer: Option B. -> 2
There are two types of macros. They are object-like and function-like.
Answer: Option B. -> #include
For a c++ program to execute, we need #include.
Answer: Option A. -> 100.01
In this program, we are getting the minimum number using conditional operator.
Answer: Option B. -> Details about your file
In this program, we are using the macros to print the information about the file.
Answer: Option D. -> none of the mentioned
In this program, as we haven't initiailzed the variable x, we will get a output of ending digit of 4.
Answer: Option A. -> 10
In this program, we are just printing the declared values.
Answer: Option C. -> compile time error
Macro Preprocessor only replaces occurance of macro symbol with macro symbol value, So we can't increment the value.
Answer: Option A. -> scripted directive
When the compiler encounters a previously defined macro, it will take the result from that execution itself.