image not found

Oops! That page can't be found.


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.

Q1:
S1: For some time in his youth Abraham Lincoln was manager for a shop.
P : Then a chance Customer would come.
Q : Young Lincoln way of keeping shop was entirely unlike anyone else's
R : Lincoln would jump up and attend to his needs and then revert to his reading.
S : He used to lie full length on the counter of the shop eagerly reading a book.
S6: Never before had Lincoln had so much time for reading as had then.
The Proper sequence should be:

A SQRP

B SRQP

C QSPR

D QPSR

Q2: Which of the following is the correct usage of conditional operators used in C?

A a>b ? c=30 : c=40;

B max = a>b ? a>c?a:c:b>c?b:c

C a>b ? c=30;

D return (a>b)?(a:b)

Q3: Which of the following statement is correct regarding destructor of base class?

A Destructor of base class should always be private.

B Destructor of base class should always be static.

C Destructor of base class should always be virtual.

D Destructor of base class should not be virtual.

Q4: Which of the following two entities (reading from Left to Right) can be connected by the dot operator?

A A class object and a class.

B A class and a member of that class.

C A class object and a member of that class.

D A class member and a class object.

Q5: How can we make a class abstract?

A By making at least one member function as pure virtual function.

B By declaring it abstract using the static keyword.

C By declaring it abstract using the virtual keyword.

D By making all member functions constant.

Q6: Which of the following statements is correct when a class is inherited publicly?

A Public members of the base class become public members of derived class.

B Public members of the base class become protected members of derived class.

C Public members of the base class become private members of derived class.

D Private members of the base class become protected members of derived class.

Q7: Which of the following statements is correct about the constructors and destructors?

A Constructors and destructors can both return a value.

B Destructors can take arguments but constructors cannot.

C Destructors can be overloaded but constructors cannot be overloaded.

D Constructors can take arguments but destructors cannot.

Q8: Which of the following access specifies is used in a class definition by default?

A Private

B Protected

C Public

D Friend

Q9: Which of the following statement is correct with respect to the use of friend keyword inside a class?

A A private data member can be declared as a friend.

B A class may be declared as a friend.

C We can use friend keyword as a class name.

D An object may be declared as a friend.

Q10: Which of the following keywords is used to control access to a class member?

A Break

B Protected

C Asm

D Default