GATE-Programming Methodology Questions and Answers
Practice ModeShowing 10 of 105 questions
Q101
If the subscript operator has been correctly overloaded for a Number class to accept an integer value, and num is a member of the number class, which of the following statements is correct ?
Answer: Option C
Q102
Which of the following statements is true ?
Answer: Option B
Q103
The >> operator
Answer: Option A
Q104
When the >> operator is overloaded for input, one parameter that should be passed to the functions is a
Answer: Option A
Q105
To overload a post fix ++ fir a Number class, an appropriate function header is
Answer: Option B