Home > C Programming > Quizzes > C Programming Practice Test: C Preprocessor
C Programming Practice Test: C Preprocessor
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “The preprocessor directive used to give additional information to the compiler, …”
Quiz questions on pragma, stringizers, conditional preprocessor directives and token concatenation. The C preprocessor is a macro processor that automatically transforms a program before compilation. It allows you to define macros, which are brief abbreviations for longer constructs. The preprocessor provides inclusion of header files, macro expansions, conditional compilation, and line control. It also makes three transformations on all input: Replaces C comments with single spaces, Deletes Backslash-Newline sequences, and Replaces predefined macro names with their expansions.  The... Show more
C Programming Practice Test: C Preprocessor
Time left 00:00
13 Questions

1. #pragma GCC poison should be followed by a list of identifiers that are _________
2. The pragma ___________________ is used to remove an identifier completely from a program.
3. The preprocessor directive which checks whether a constant expression results in a zero or non-zero value __________
4. _______________ is the preprocessor directive which is used to end the scope of #ifdef.
5. In the directive #pragma pack(n), if the value of ‘n’ is given to be 5, then what happens?
6. Which of the following attributes is used to specify that the minimum required memory to be used to represent the types?
7. The function of __attribute__((packed)); can also be performed using _________
8. The preprocessor directive which is used to remove the definition of an identifier which was previously defined with #define?
9. The purpose of the preprocessor directive #error is that ____________
10. The correct syntax of the attribute packed is _________
11. Which of the following is a stringizing operator?
12. In the directive, #pragma pack(n), which of the following is not a valid value of n?
13. The preprocessor directive used to give additional information to the compiler, beyond which is conveyed in the language _____________