GATE-Programming Methodology Questions and Answers
Practice ModeShowing 10 of 105 questions
Q61
If four classes had the same friend function, you would forward declare
Answer: Option D
Explanation: three classes
Q62
A friend function
Answer: Option D
Q63
The generic type in a template function
Answer: Option B
Q64
When a function tries to access an object's private data member
Answer: Option A
Q65
The prototypes for friend functions are most often listed in the
Answer: Option D
Q66
A dumb terminal has
Answer: Option C
Q67
A class may
Answer: Option D
Q68
You use data hiding when you create
Answer: Option B
Q69
Classes can bestow friendship on
Answer: Option B
Q70
You may grant friendship to
Answer: Option D