In search of my DESTINY....!!!!

Wednesday, 24 August 2016

On 11:25:00 by Unknown   1 comment

1. Property which allows to produce different executable for different platforms in C is called?
A. File inclusion
B. Selective inclusion
C. Conditional compilation
D. Recursive macros

2. #include is called
A. Preprocessor directive
B. Inclusion directive
C. File inclusion directive
D. None of the mentioned
3. C preprocessors can have compiler specific features.
A. true
B. false
C. Depends on the standard
D. Depends on the platform
4. C preprocessor is conceptually the first step during compilation.
A. true
B. false
C. Depends on the compiler
D. Depends on the standard
5. Preprocessor feature that supply line numbers and file names to compiler is called?
A. Selective inclusion
B. macro substitution
C. Concatenation
D. Line control
6. #include are _______ files and #include “somefile.h” ________ files.
A. Library, Library
B. Library, user-created header
C. User-created header, library
D. They can include all types of file
7. A preprocessor is a program.
A. That processes its input data to produce output that is used as input to another program
B. That is nothing but a loader
C. That links various source files
D. All of the mentioned
8. Which of the following are C preprocessors?
A. #ifdef
B. #define
C. #endif
D. All of the mentioned.
10. #pragma exit is primarily used for?
A. Checking memory leaks after exitting the program
B. Informing Operating System that program has terminated
C. Running a function at exitting the program
D. No such preprocessor exist
11. The C-preprocessors are specified with _________symbol.
A. #
B. $
C. " "
D. None of the mentioned.
12. The #include directive
A. Tells the preprocessor to grab the text of a file and place it directly into the current file
B. Statements are typically placed at the top of a program
C. both a & b
D. None of a & b
13. The preprocessor provides the ability for _______________.
A. The inclusion of header files
B. The inclusion of macro expansions
C. Conditional compilation and line control.
D. All of the mentioned
14. If #include is used with file name in angular brackets.
A. The file is searched for in the standard compiler include paths
B. The search path is expanded to include the current source directory
C. Both a & b
D. None of the mentioned





1 comment: