C++ MCQ’s

C++ MCQ’s Home Page

C++ Basic 1
C++ Basic 2
C++ Basic 3
C++ Basic 4
C++ Basic 5
C++ OOPs Concepts 1
C++ OOPs Concepts 2
C++ OOPs Concepts 3
C++ OOPs Concepts 4
C++ OOPs Concepts 5

 

C++ Language MCQ’S | OOPs Concepts Set 2 3

11.
Which of the following is a static polymorphism mechanism?

a) Function overloading
b) Operator overloading
c) Templates
d) All of the mentioned

12.
Which of the following is true?

I) All operators in C++ can be overloaded.
II) The basic meaning of an operator can be changed.
a) I only
b) II only
c) Both I and II
d) Neither I nor II

13.
Which of the following is not a type of inheritance?

a) Multiple
b) Multilevel
c) Distributive
d) Hierarchical

14.
What happens if a class does not have a name?

a) It will not have a constructor
b) It will not have a destructor
c) It is not allowed
d) It will neither have a constructor or destructor

15.
Which of the following statement is true?

I) In Procedural programming languages, all function calls are resolved at compile-time
II) In Object Oriented programming languages, all function calls are resolved at compile-time

a) I only
b) II only
c) Both I and II
d) Neither I nor II

Visitor Counter

0056743