GATE-Programming Methodology Questions and Answers
Practice ModeShowing 10 of 105 questions
Q51
You can bestow friendship on
Answer: Option D
Q52
You can bestow friendship on all members of another class by
Answer: Option C
Q53
You need to display two private data members from one object of a class. You would
Answer: Option A
Q54
A function that can access private members of a class, even though it is not a member of the class itself, is
Answer: Option A
Q55
Select the correct statement of the following ?
Answer: Option B
Q56
Select the correct statement of the following ?
Answer: Option A
Q57
A function can
Answer: Option A
Q58
When a nonmember function needs to refer to instances of two different classes, then
Answer: Option B
Q59
When a nonmber function needs to refer to instances of two different classes, then you must
Answer: Option C
Q60
A forward reference
Answer: Option A