Home / CSE MCQs / C-MCQs :: Preprocessor - C

CSE MCQs :: C-MCQs

  1. Property which allows to produce different executable for different platforms in C is called?
  2. A.
    File inclusion
    B.
    Selective inclusion
    C.
    Conditional compilation
    D.
    Recursive macros

  3. #include is called
  4. A.
    Preprocessor directive
    B.
    Inclusion directive
    C.
    File inclusion directive
    D.
    None of the mentioned

  5. C preprocessors can have compiler specific features.
  6. A.
    true
    B.
    false
    C.
    Depends on the standard
    D.
    Depends on the platform

  7. C preprocessor is conceptually the first step during compilation.
  8. A.
    true
    B.
    false
    C.
    Depends on the compiler
    D.
    Depends on the standard

  9. Preprocessor feature that supply line numbers and file names to compiler is called?
  10. A.
    Selective inclusion
    B.
    macro substitution
    C.
    Concatenation
    D.
    Line control

  11. #include are _______ files and #include "somefile.h ________ files.
  12. A.
    Library, Library
    B.
    Library, user-created header
    C.
    User-created header, library
    D.
    They can include all types of file

  13. A preprocessor is a program.
  14. A.
    That processes its input data to produce output that is used as input to another program
    B.
    That is nothing but a loader
    C.
    That links various source files
    D.
    All of the mentioned

  15. Which of the following are C preprocessors?
  16. A.
    #ifdef
    B.
    #define
    C.
    #endif
    D.
    All of the mentioned.

  17. #include statement must be written.
  18. A.
    Before main()
    B.
    Before any scanf/printf
    C.
    After main()
    D.
    It can be written anywhere

  19. #pragma exit is primarily used for?
  20. A.
    Checking memory leaks after exitting the program
    B.
    Informing Operating System that program has terminated
    C.
    Running a function at exitting the program
    D.
    No such preprocessor exist