Thursday, September 9, 2010

Delhi Metro Rail Corporation Limited Recruitment Exam

1. Parameter passing mechanism for an array is
a. call by value b. call by value and call by reference
c. call by reference d. none of the above

Ans: (a)

2. Use of functions
a. help to avoid repeating a set of instructions many times
b. enhance the logical flow of the program
c. makes the debugging task easier
d. all of the above

Ans: (d)

3. Storage class defines
a. the data type
b. the scope
c. the scope and performance
d. the scop, performance and data type

Ans: (c)

4. The use of macros in place of functions
a. reduces execution times
b. reduces code size
c. increases execution time
d. increase code size

Ans: (a)

5. Scope of macro definition
a. cannot be beyond the file in which it is defined
b. may be part of a file
c. is in the entire program
d. excludes string of characters within double quotes
e. (a), (b), (d)

Ans: (e)

No comments: