chtp5_13-TIF-Beta - 13.1Introduction 13.1 Preprocessing...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
13.1  Introduction 13.1 Preprocessing occurs (a) before a program is compiled. (b) during compilation. (c) after compilation but before execution. (d) immediately before execution. ANS: (a) 13.2 Preprocessor directives (a) begin with include (b) are C statements. (c) are ignored if whitespace characters before them on the same line. (d) do not end in a semicolon. ANS: (d) 13.3. Which is not a capability of the preprocessor? a) inclusion of other files in the file being compiled b) definition of functions c) definition of symbolic constants d) definition of macros ANS: (b) 13.4. Which statement about the preprocessor is false? a) it can perform conditional compilation of program code b) it can perform conditional execution of preprocessor directives c) all preprocessor directives begin with # d) all preprocessor directors must begin in column 1 ANS: (d) 13.2  The #include Preprocessor Directive 13.5 The #include preprocessor directive causes a(n) ____________ to be included instead of the directive. (a) copy of a file (b) # character (c) pointer to a file (d) bitfield ANS: (a)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Which include statement is usually appropriate for user-defined files? (a) include <filename> (b) #include "filename" (c) Both (a) and (b) are appropriate. (d) Neither (a) nor (b) is appropriate. ANS: (b) 13.7. The #include directive a) must begin in column 1 b) includes a file in the program at execution time c) includes a file in the program before compilation d) appends a file to the end of the program ANS: (c) 13.8. Which is a correct form of the #include directive a) #include ‘filename’ b) #include /filename/ c) #include #filename d) #include <filename> ANS: (d) 13.9. Which statement about the #include directive is false? a) The difference between the various forms of the #include directive is the location the preprocessor searches for the file to be included. b) If the file name is enclosed in quotes, the preprocessor searches in the same directory as the file being compiled for the file to be included. c) If the file name is enclosed in angle brackets, the preprocessor searches in the same directory as the file being compiled for the file to be included. d) The preprocessor searches for standard library header files in an implementation- dependent manner. ANS: (c) 13.10. Which statement about the #include preprocessor directive is false? a) It used used with programs consisting of several source files that are to be compiled together. b) A header file containing definitions common to separate program files is often created and included in a program with #include . c) #include header files often contain structure and union definitions, enumerations and function prototypes. d) It includes standard library header files such as
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/13/2011 for the course C PROGRAMM ES 112 taught by Professor Serdar during the Spring '11 term at Yeditepe Üniversitesi.

Page1 / 12

chtp5_13-TIF-Beta - 13.1Introduction 13.1 Preprocessing...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online