Which of the following statements are True? A. The ++ operator can be…

2026

Which of the following statements are True?

A. The ++ operator can be overloaded to perform decrementation of a variable.

B. It is necessary that a constructor in a class should always be public.

C. Size of an object is equal to sum of sizes of data members and member functions within the class.

D. A static data member is useful when all objects of a class are to share a common item of information.

E. The this pointer always contains the address of the object using which the member function is being called.

Choose the correct answer from the options given below:

  1. A.

    A, B, C Only

  2. B.

    B, C, E Only

  3. C.

    A, D, E Only

  4. D.

    B, D, E Only

Attempted by 36 students.

Show answer & explanation

Correct answer: C

Statement A is true because C++ allows operator overloading for custom behavior. Statement B is false as constructors can be private or protected, not just public. Statement C is incorrect since member functions are stored separately and do not add to object size. Statement D is true because static data members are shared across all instances of a class. Statement E is correct as the this pointer holds the address of the current object instance.

Explore the full course: Mppsc Assistant Professor