GATE-Programming Methodology Questions and Answers
Practice ModeShowing 10 of 105 questions
Q21
Objects with arbitrary life times are created in
Answer: Option A
Q22
Consider the following statements: I. For each object different copy of static data members, available like normal data members. II. Static data members must be defined and initialized like global variables, otherwise linking error will result. of these statement
Answer: Option D
Q23
What exception will a function throw it an exception specification of the form throw () ?
Answer: Option C
Q24
If a catch clause {catch (...)} used with other catch clase, it should be placed
I. In the beginning of list of exception handlers
II. Two level directory
III. Tree structured directory
IV. Any where
Answer: Option D
Q25
When subscript operator is overloaded, then it can parameter of type
Answer: Option D
Q26
template classes that have already been written to perform common class tasks are called
Answer: Option A
Q27
A pro9gramming structure that contains data and a pointer to the next object is a
Answer: Option D
Q28
Visibility mode by default is
Answer: Option D
Q29
Virtual function should be defined in ........ section of a class.
Answer: Option D
Q30
Of the following, correct statements is
Answer: Option C