a. Objects
b. Functions
c. Methods
d. Constants
The correct option is (a)
Explanation:
No Explanation for this Question.
a. functions
b. both data & functions
c. arrays
d. data
The correct option is (b)
Explanation:
The classes in C++ encapsulates(i.e. put together) all the data and functions related to them for manipulation.
a. 1
b. 2
c. 3
d. 4
The correct option is (c)
Explanation:
There are three types of access specifiers. They are public, private, protected
a. ::
b. :
c. #
d. !!$
The correct option is (a)
Explanation:
:: operator is used to define the body of any class function outside the class.
a. union
b. object.
c. both struct & union
d. struct
The correct option is (d)
Explanation:
union and Struct take the same definition of class but differs in the access techniques.
a. public.
b. public & protected
c. protected
d. private
The correct option is (d)
Explanation:
By default all the data members and member functions of class are private.
a. construct the data members.
b. both initialize the objects & construct the data members
c. delete the objects
d. initialize the objects
The correct option is (d)
Explanation:
Once the object is declared means, the constructor are also declared by default.
a. Scope resolution operator.
b. Conditional operator
c. New operator
d. Membership access
The correct option is (c)
Explanation:
No Explanation for this Question.
a. A obj = new A();
b. A *obj = new A();
c. A obj;
d. None
The correct option is (c)
Explanation:
No Explanation for this Question.