Question 16Asked in DSSSB TGT Computer Science (Technical), 1 Aug 2021, Shift 1

Which of the following statement(s) is/are true about pre-processor in C/C++?

Which of the following statement(s) is/are true about pre-processor in C/C++? I. To replace each # include directive with the contents of the designated file. II. To replace each escape sequence with designated character. III. To process macro definitions and expand macro calls.
  1. AI and II
  2. BII and III
  3. COnly I
  4. DI, II and III
Show answerHide answer

Correct answer: (D) I, II and III

Explanation

The preprocessor stage replaces #include lines with the file contents and expands macros; the key also counts handling of escape sequences in this preprocessing step, so all three are taken as correct.

From DSSSB TGT Computer Science PYQ (Technical), 1 Aug 2021, Shift 1

This is question 16 of DSSSB TGT Computer Science PYQ (Technical), 1 Aug 2021, Shift 1. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.