11. What is the purpose of the #if directive in C preprocessing? A. To check if a variable is declared B. To conditionally include code C. To include a header file D. To define a macro Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
12. In C, how do you use the #ifdef directive to conditionally include code if a macro is defined? A. #ifdef MACRO B. #ifdef(MACRO) C. #ifdef:MACRO D. #ifdef: MACRO Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
13. What is the purpose of the #error directive in C preprocessing? A. To include an error message in the code B. To define a macro C. To check if a variable is declared D. To conditionally compile code Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
14. What is the result of the #ifndef DEBUG directive if the DEBUG macro is defined? A. The code block following it is included B. The code block following it is excluded C. It generates a compilation error D. It defines the DEBUG macro Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option B No explanation is given for this question Let's Discuss on Board
15. Which directive in C preprocessing is used to concatenate two or more strings? A. #concat B. #strcat C. #combine D. #define Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option D No explanation is given for this question Let's Discuss on Board
16. In C, what does the #line directive do in C preprocessing? A. Specifies the line number in the source file B. Defines a macro C. Includes a header file D. Excludes code Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
17. What is the purpose of the #pragma once directive in C preprocessing? A. Prevents recursive inclusion of header files B. Defines a macro C. Checks for syntax errors D. Excludes code Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
18. In C preprocessing, what is the purpose of the #elif directive? A. Checks if a macro is defined B. Checks if a macro is not defined C. Provides an alternative condition D. Defines a macro Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option C No explanation is given for this question Let's Discuss on Board
19. What is the result of the #error directive in C preprocessing? A. Generates a compilation error with a specified error message B. Defines a macro C. Checks for syntax errors D. Excludes code Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board
20. What is the purpose of the #pragma message directive in C preprocessing? A. Includes a message in the code B. Defines a macro C. Checks for syntax errors D. Excludes code Answer & Solution Discuss in Board Save for Later Answer & Solution Answer: Option A No explanation is given for this question Let's Discuss on Board