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 SRQP
B QSPR
C QPSR
D SQRP
Share : |
A max = a>b ? a>c?a:c:b>c?b:c
B a>b ? c=30;
C a>b ? c=30 : c=40;
D return (a>b)?(a:b)
Share : |
A Destructor of base class should not be virtual.
B Destructor of base class should always be virtual.
C Destructor of base class should always be private.
D Destructor of base class should always be static.
Share : |
A A class and a member of that class.
B A class object and a class.
C A class object and a member of that class.
D A class member and a class object.
Share : |
A By making at least one member function as pure virtual function.
B By making all member functions constant.
C By declaring it abstract using the static keyword.
D By declaring it abstract using the virtual keyword.
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 public members of derived class.
D Public members of the base class become protected members of derived class.
Share : |
A Constructors can take arguments but destructors cannot.
B Constructors and destructors can both return a value.
C Destructors can take arguments but constructors cannot.
D Destructors can be overloaded but constructors cannot be overloaded.
Share : |
A Friend
B Protected
C Public
D Private
Share : |
A A private data member can be declared as a friend.
B We can use friend keyword as a class name.
C A class may be declared as a friend.
D An object may be declared as a friend.
Share : |
A Default
B Break
C Asm
D Protected
Share : |