Directions to Solve In questions below, each passage consist of six sentences. The first and sixth sentence are given in the begining. The middle four sentences in each have been removed and jumbled up. These are labelled as P, Q, R and S. Find out the proper order for the four sentences. A SQRP
B SRQP
C QPSR
D QSPR
Share : |
A a>b ? c=30 : c=40;
B max = a>b ? a>c?a:c:b>c?b:c
C return (a>b)?(a:b)
D a>b ? c=30;
Share : |
A Destructor of base class should always be private.
B Destructor of base class should always be virtual.
C Destructor of base class should always be static.
D Destructor of base class should not be virtual.
Share : |
A A class object and a member of that class.
B A class member and a class object.
C A class and a member of that class.
D A class object and a class.
Share : |
A By declaring it abstract using the virtual keyword.
B By declaring it abstract using the static keyword.
C By making at least one member function as pure virtual function.
D By making all member functions constant.
Share : |
A Public members of the base class become private members of derived class.
B Private members of the base class become protected members of derived class.
C Public members of the base class become protected members of derived class.
D Public members of the base class become public members of derived class.
Share : |
A Constructors can take arguments but destructors cannot.
B Destructors can take arguments but constructors cannot.
C Constructors and destructors can both return a value.
D Destructors can be overloaded but constructors cannot be overloaded.
Share : |
A Protected
B Friend
C Private
D Public
Share : |
A A private data member can be declared as a friend.
B A class may be declared as a friend.
C An object may be declared as a friend.
D We can use friend keyword as a class name.
Share : |
A Protected
B Asm
C Default
D Break
Share : |
