C Programming Macro & Preprocessor MCQ

21. Identify the trigraph sequence for \.

A. ??/
B. ??=
C. ??'
D. ??!

View Answer


22. Identify the trigraph sequence for^.

A. ??/
B. ??=
C. ??'
D. ??!

View Answer


23. What is the output generated by the following code?
    #define square (a) (a*a)
    printf("%d", square (4+5) ) ;

A. 81
B. 4
C. 29
D. None of the above.

View Answer


24. Undefined function calls in a C program.

A. by the preprocessor
B. by the linker
C. by the assembler
D. by the operating system are detected

View Answer


25. Identify the macro(s) defined in stdarg.h.

A. va_start
B. va_end
C. va_arg
D. all the above

View Answer


26. va_list is

A. a macro defined in stdarg.h
B. a predefined data type in stdarg.h
C. a macro defined in stdlib.h
D. a predefined data type stdlib.h.

View Answer


27. The following line in a program # represents

A. an invalid code
B. a null directive
C. a comment
D. a page number

View Answer


28. Identify the stringizing operator.

A. +
B. ::
C. #
D. ##

View Answer


29. The EOF character can be included in a file as part of its data

A. True
B. False

View Answer


30. The NULL character indicates an end of a string and a file.

A. True
B. False

View Answer







Also check :


Discussion


* You must be logged in to add comment.