Q.1

Which of the following is not a type of constructor?

  • Copy constructor
  • Friend constructor
  • Default constructor
  • Parameterized constructor
Q.2

Which of the following statements is correct?

  • Base class pointer cannot point to derived class.
  • Derived class pointer cannot point to base class.
  • Pointer to derived class cannot be created.
  • Pointer to base class cannot be created.
Q.3

Which of the following is an invalid visibility label while inheriting a class?

  • public
  • private
  • protected
  • friend
Q.4

Which of the following are available only in the class hierarchy chain?

  • Public data members
  • Private data members
  • Protected data members
  • Member functions
Q.5

Which of the following is not a type of inheritance?

  • Multiple
  • Multilevel
  • Distributive
  • Hierarchical
Q.6

Which of the following is correct about function overloading?

  • The types of arguments are different.
  • The order of argument is different.
  • The number of argument is same.
  • Both A and B.
Q.7

Which of the following is an abstract data type?

  • int
  • double
  • string
  • Class
Q.8

Which of the following problem causes an exception?

  • Missing semicolon in statement in main().
  • A problem in calling function.
  • A syntax error.
  • A run-time error.
Q.9

How "Late binding" is implemented in C++?

  • Using C++ tables
  • Using Virtual tables
  • Using Indexed virtual tables
  • Using polymorphic tables
Q.10

Which one of the following is the correct way to declare a pure virtual function?

  • virtual void Display(void){0};
  • virtual void Display = 0;
  • virtual void Display(void) = 0;
  • void Display(void) = 0;
Q.11

Which of the following access specifier is used as a default in a class definition?

  • protected
  • public
  • private
  • friend
Q.12

Which of the following is not the member of class?

  • Static function
  • Friend function
  • Const function
  • Virtual function
Q.13

Which of the following concepts means determining at runtime what method to invoke?

  • Data hiding
  • Dynamic Typing
  • Dynamic binding
  • Dynamic loading
Q.14

Which one of the following options is correct about the statement given below? The compiler checks the type of reference in the object and not the type of object.

  • Inheritance
  • Polymorphism
  • Abstraction
  • Encapsulation
Q.15

Which of the following operator is overloaded for object cout?

  • >>
  • <<
  • +
  • =
Q.16

Which of the following header file includes definition of cin and cout?

  • istream.h
  • ostream.h
  • iomanip.h
  • iostream.h
Q.17

What is correct about the static data member of a class?

  • A static member function can access only static data members of a class.
  • A static data member is shared among all the object of the class.
  • A static data member can be accessed directly from main().
  • Both A and B.
0 h : 0 m : 1 s