Home / C Programming / C Preprocessor :: True / False Questions

C Programming :: C Preprocessor

  1. If the file to be included doesn't exist, the preprocessor flashes an error message.

  2. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Preprocessor directive #undef can be used only on a macro that has been #define earlier

  4. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. There exists a way to prevent the same file from getting #included twice in the same program.

  6. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. A preprocessor directive is a message from programmer to the preprocessor.

  8. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Macro calls and function calls work exactly similarly.

  10. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. A macro must always be defined in capital letters.

  12. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Macros have a local scope.

  14. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Every C program will contain at least one preprocessor directive.

  16. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Preprocessor directive #ifdef .. #else ... #endif is used for conditional compilation.

  18. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Macros with arguments are allowed

  20. A.
    True
    B.
    False

    View Answer

    Workspace

    Discuss Discuss in Forum