(A) Inefficiency
(B) Corruption
(C) Fear of nationalism
(D) All of the above
Author:
Demerit of socialism lies in:
(A) Concentration of power in government hand
(B) Bureaucratic set up
(C) Wrong calculation of cost
(D) All of the above
Friend class and friend function can be used as an alternate to each other.
(A) True
(B) False
Given the following class class Base { int Age=33; } How you can improve above class with respect to accessing the field Age?
(A) Define the variable Age as private
(B) Define the variable Age as protected
(C) Define the variable Age as private and create a get method that returns it and a set method that updates it
(D) Define the variable Age as protected and create a set method that returns it and a get method that updates it
C++ compiler does not allow to dynamically allocate memory for objects.
(A) True
(B) False
__ is/are used to access information hidden within an object.
(A) Private data members
(B) Private member functions
(C) Interface
(D) None of the above
What a derived class can add?
(A) New data members
(B) New member functions and New friend functions
(C) New constructors and destructor
(D) All of the above
Suppose there is an object of type Person, which of the following can be considered as one of its attributes?
(A) Age
(B) Name
(C) Work()
(D) Both Name and Age