Live Help (Start Chat)
View Count: 0
Duration: 23 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 19 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 21
Use of _______ header file provides functions and macros to implement the functionality of variable arguments. 
Options:
  1. Stdio.h
  2. String.h
  3. stdarg.h
  4. ctype.h
View Answer/Explanation:
c
Explanation:

Question No: 2 of 21
Which stage the following code #include gets replaced by the contents of the file stdio.h 
Options:
  1. During editing
  2. During linking
  3. During execution
  4. During pre-processing
View Answer/Explanation:
d
Explanation:
The preprocessor replaces the line #include with the system header file of that name. More precisely, the entire text of the file 'stdio.h' replaces the #include directive.

Question No: 3 of 21
If the file to be included doesn't exist, the pre-processor displays an error message 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:
True, We can prevent the same file from getting included again by using a preprocessor directive called #ifndef (short for "if not defined") to determine whether we've already defined a preprocessor symbol called XSTRING_H. If we have already defined this symbol, the compiler will ignore the rest of the file until it sees a #endif (which in this case is at the end of the file). #ifndef XSTRING_H #define XSTRING_H defines the same preprocessor symbol, Finally, the last line of the file, #endif

Question No: 4 of 21
Macro calls and function calls work exactly similarly. 
Options:
  1. True
  2. False
View Answer/Explanation:
b
Explanation:
False, A macro just replaces each occurrence with the code assigned to it. e.g. SQUARE(3) with ((3)*(3)) in the program. A function is compiled once and can be called from anywhere that has visibility to the function.\

Question No: 5 of 21
In a macro call the control is passed to the macro. 
Options:
  1. True
  2. False
View Answer/Explanation:
b
Explanation:
False, always the macro is substituted by the given text/expression.

Question No: 6 of 21
A header file contains macros, structure declaration and function prototypes 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:
True, the header file contains classes, function prototypes, structure declaration, macros.

Question No: 7 of 21
A pre-processor directive is a message from compiler to a linker. 
Options:
  1. True
  2. False
View Answer/Explanation:
b
Explanation:
When the pre-processor encounters #define directive, it replaces any occurrence of symbol in the rest of the code by replacement. This replacement can be an statement or expression or a block or simple text.

Question No: 8 of 21
Once preprocessing is over and the program is sent for the compilation the macros are removed from the expanded source code. 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:
After preprocessing all the macro in the program are removed.

Question No: 9 of 21
Preprocessor directive #ifdef .. #else ... #endif is used for conditional compilation. 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:
True, these macros are used for conditional operation. #if #elif #endif

Question No: 10 of 21
Macros with arguments are allowed 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:

  1