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

CSE MCQs :: C-MCQs

  1. A preprocessor is a program.
  2. 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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. #pragma exit is primarily used for?
  8. 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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The #include directive
  12. 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

    View Answer

    Workspace

    Discuss Discuss in Forum


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

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. If #include is used with file name in angular brackets.
  16. 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

    View Answer

    Workspace

    Discuss Discuss in Forum