GATE-Programming Methodology Questions and Answers
Practice ModeShowing 10 of 105 questions
Q71
Creating a class definition when one class is granting friendship to a function that is a member of another class requires first
Answer: Option B
Q72
If my Class is a friend of Your-Class, which is true ?
Answer: Option C
Q73
Forcing a variable type to become another type before accessing an appropriate function is known as
Answer: Option D
Q74
Without overloading of the + operator,
Answer: Option D
Q75
Which of the following operators may be overloaded ?
Answer: Option C
Q76
Which of the following may be overloaded as an operator?
Answer: Option D
Q77
The names of the operator function that overloads the * symbol is
Answer: Option A
Q78
Assuming you have properly overloaded the/operator for a Number class, and that a and b are two members of the Number class, which expression is legal?
Answer: Option C
Q79
Assuming yu have properly overloaded the *operator to perform multiplication for a Number class, and that a, b, and c are three members of the Number class, which expression is legal?
Answer: Option C
Q80
When an operator is used alone with a single variable argument, the operator is said to be
Answer: Option B