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

CSE MCQs :: C-MCQs

  1. The C-preprocessors are specified with _________symbol.
  2. A.
    #
    B.
    $
    C.
    " "
    D.
    None of the mentioned.

  3. The #include directive
  4. A.
    Tells the preprocessor to grab the text of a file and place it directly into the current file
    B.
    Statements are typically placed at the top of a program
    C.
    both a & b
    D.
    None of a & b

  5. The preprocessor provides the ability for _______________.
  6. A.
    The inclusion of header files
    B.
    The inclusion of macro expansions
    C.
    Conditional compilation and line control.
    D.
    All of the mentioned

  7. If #include is used with file name in angular brackets.
  8. A.
    The file is searched for in the standard compiler include paths
    B.
    The search path is expanded to include the current source directory
    C.
    Both a & b
    D.
    None of the mentioned

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

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

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

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

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

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