Q.1

Which of the following statement is correct?

  • C++ allows static type checking.
  • C++ allows dynamic type checking.
  • C++ allows static member function be of type const.
  • Both A and B.
Q.2

Which one of the following options is correct?

  • Friend function can access public data members of the class.
  • Friend function can access protected data members of the class.
  • Friend function can access private data members of the class.
  • All of the above.
Q.3

What will happen if a class is not having any name?

  • It cannot have a destructor.
  • It cannot have a constructor.
  • It is not allowed.
  • Both A and B.
Q.4

Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?

  • Call by value
  • Call by reference
  • Default arguments
  • Call by pointer
Q.5

How many instances of an abstract class can be created?

  • 1
  • 5
  • 13
  • 0
Q.6

Which of the following concepts is used to implement late binding?

  • Virtual function
  • Operator function
  • Const function
  • Static function
Q.7

Which of the following term is used for a function defined inside a class?

  • Member Variable
  • Member function
  • Class function
  • Classic function
Q.8

Which of the following is the correct way of declaring a function as constant?

  • const int ShowData(void) { /* statements */ }
  • int const ShowData(void) { /* statements */ }
  • int ShowData(void) const { /* statements */ }
  • Both A and B
Q.9

Which of the following keyword is used to overload an operator?

  • overload
  • operator
  • friend
  • override
Q.10

Which of the following is a mechanism of static polymorphism?

  • Operator overloading
  • Function overloading
  • Templates
  • All of the above
Q.11

Which of the following concepts means adding new components to a program as it runs?

  • Data hiding
  • Dynamic typing
  • Dynamic binding
  • Dynamic loading
Q.12

Why reference is not same as a pointer?

  • A reference can never be null.
  • A reference once established cannot be changed.
  • Reference doesn't need an explicit dereferencing mechanism.
  • All of the above.
Q.13

Which of the following is correct about the statements given below?

  1. All operators can be overloaded in C++.
  2. We can change the basic meaning of an operator in C++.
  • Only I is true.
  • Both I and II are false.
  • Only II is true.
  • Both I and II are true.
Q.14

Which of the following statement is correct?

  • A constructor is called at the time of declaration of an object.
  • A constructor is called at the time of use of an object.
  • A constructor is called at the time of declaration of a class.
  • A constructor is called at the time of use of a class.
Q.15

cout is a/an __________ .

  • operator
  • function
  • object
  • macro
Q.16

Which of the following concepts provides facility of using object of one class inside another class?

  • Encapsulation
  • Abstraction
  • Composition
  • Inheritance
Q.17

Which of the following is the correct class of the object cout?

  • iostream
  • istream
  • ostream
  • ifstream
Q.18

Which of the following cannot be friend?

  • Function
  • Class
  • Object
  • Operator function
Q.19

Which of the following concepts of OOPS means exposing only necessary information to client?

  • Encapsulation
  • Abstraction
  • Data hiding
  • Data binding
Q.20

Which of the following provides a reuse mechanism?

  • Abstraction
  • Inheritance
  • Dynamic binding
  • Encapsulation
0 h : 0 m : 1 s