AMCAT COMPUTER PROGRAMMMING PREVIOUS QUESTIONS (PAPERS)-6

Question 1
A virtual function that has no definition within the base class is called?
A. Pure virtual function
B. Pure static function
C. Pure Const function
D. Virtual Function

Correct Op:A

Question 2
Syntax for Pure Virtual Function is?
A. virtual void show()==0
B. void virtual show()==0
C. virtual void show()=0
D. void virtual show()=0

Correct Op:A

Question 3
C++ supports run time polymorphism with the help of virtual functions, which is called …………….. binding?
A. dynamic
B. run time
C. early binding
D. static

Correct Op:A

Question 4
Find the wrong statement/s about Abstract Class?
A. We can’t create its objects.
B. We can’t create pointers to an abstract class.
C. It contains at least one pure virtual function.
D. We can create references to an abstract class.

Correct Op:B
We can’t create pointers to an abstract class.

Question 5
Which of the followings are true about Virtual functions?
A. They must be non-static member function of the class
B. They cannot be friends
C. Constructor Functions cannot be virtual
D. All of these

Correct Op:D

Question 6
Which of the following correctly describes overloading of functions?
A. Virtual polymorphism
B. Ad-hoc polymorphism
C. Transient polymorphism
D. Pseudo polymorphism

Correct Op:B

Question 7
Which of the following operator is overloaded for object cout?
A. +
B. >>
C. <<
D. =
E. ()

Correct Op:B

Question 8
Which of the following operators cannot be overloaded? A B C
A. *
B. ->
C. []
D. ?:

Correct Op:A

Question 9
The operator << when overloaded in a class
A. must be a member function
B. must be a non member function
C. can be both (A) & (B) above
D. cannot be overloaded

Correct Op: C