C++ Multiple Choice Questions

  1. Which of the following correctly describes overloading of functions?
    1. Virtual polymorphism
    2. Transient polymorphism
    3. Ad-hoc polymorphism
    4. Pseudo polymorphism
Answer :
C
Explanation:
Added By : Anuradha

  1. Which of the following concepts means adding new concepts to a program as it runs?
    1. Data hiding
    2. Dynamic loading
    3. Dynamic typing
    4. Dynamic binding
Answer :
B
Explanation:
Added By : Harish


  1. Which of the following operators can not be overloaded in C+ +?
    1. *
    2. ==
    3. +=
    4. ::
Answer :
D
Explanation:
Added By : Naresh

  1. What is a size of empty class in c++?
    1. 4 bytes
    2. 2 bytes
    3. 0 bytes
    4. 1 bytes
Answer :
D
Explanation:
Added By : Sandip Walunj

  1. In c++ object of the class is also called?
    1. Constants
    2. Tag
    3. Instance
    4. Data collection
Answer :
C
Explanation:
Added By : Amit

  1. ________ is a default access specifier for members of class in C++.
    1. protected
    2. public
    3. private
    4. default
Answer :
C
Explanation:
Added By : Sandip Walunj


  1. ________ is a default access specifier for members of structures in C++.
    1. protected
    2. public
    3. private
    4. default
Answer :
B
Explanation:
Added By : Sandip Walunj

  1. In object oriented programming, by wrapping up characteristics and behavior into one unit, we achieve
    1. Data Abstraction
    2. Data Encapsulation
    3. Data Hiding
    4. All of these
Answer :
B
Explanation:
Added By : Kiran Kumar

Social Sharing
Search