Classes and Objects

Q1:
Which of the following statements are correct about the this reference?
  1. this reference can be modified in the instance member function of a class.
  2. Static functions of a class never receive the this reference.
  3. Instance member functions of a class always receive a this reference.
  4. this reference continues to exist even after control returns from an instance member function.
  5. While calling an instance member function we are not required to pass the this reference explicitly.

A 3, 4

B 1, 4

C 2, 3, 5

D 2, 5

E None of these

ANS:B - 2, 3, 5

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.