C Programming Macro & Preprocessor MCQ
21. Identify the trigraph sequence for .
A. ??/
B. ??=
C. ??
D. ??!
View Answer
Ans : A
Explanation: The trigraph sequence for is ??/
22. Identify the trigraph sequence for^.
A. ??/
B. ??=
C. ??
D. ??!
View Answer
Ans : C
Explanation: The trigraph sequence for ^ is ??
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
Ans : C
Explanation: the output generated by the following code is 29.
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
Ans : C
Explanation: Undefined function calls in a C program by the assembler.
25. Identify the macro(s) defined in stdarg.h.
A. va_start
B. va_end
C. va_arg
D. all the above
View Answer
Ans : D
Explanation: The macro(s) defined in stdarg.h is all.
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
Ans : B
Explanation: a predefined data type in stdarg.h
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
Ans : B
Explanation: The following line in a program # represents a null directive.
28. Identify the stringizing operator.
A. +
B. ::
C. #
D. ##
View Answer
Ans : C
Explanation: # the stringizing operator.
29. The EOF character can be included in a file as part of its data
A. TRUE
B. May Be
C. FALSE
D. Can't Say
View Answer
Ans : B
Explanation: No, The EOF character can not be included in a file as part of its data.
30. The NULL character indicates an end of a string and a file.
A. TRUE
B. May Be
C. FALSE
D. Can't Say
View Answer
Ans : B
Explanation: No, The NULL character did not indicates an end of a string and a file.
Also check :
Discussion