C++ Multiple Choice Questions

  1. The Object is not declared for which class?
    1. Parent
    2. Base
    3. Abstract
    4. Derived
Answer :
C
Explanation:
Added By : Rachna


  1. The constructor without parameter is called?
    1. Method Constructor
    2. Default Constructor
    3. Operator Constructor
    4. Function Constructor
Answer :
B
Explanation:
Added By : Rachna

  1. The static member variable is initialized to?
    1. 0
    2. 1
    3. 2
    4. -1
Answer :
A
Explanation:
Added By : Rachna


  1. Which of the following is user defined data type?
    1. Public
    2. Private
    3. Class
    4. A & B Both
Answer :
C
Explanation:
Added By : Rachna

  1. A __________ is a special method used to initialize the instance variable of a class.
    1. Member function
    2. Destructor
    3. Constructor
    4. Structure
Answer :
C
Explanation:
Added By : Saurabh

  1. Member of a class specified as _______ are accessible only to method of the class.
    1. private
    2. public
    3. protected
    4. derive
Answer :
A
Explanation:
Added By : Saurabh


  1. The goal of operator overloading is __________.
    1. To help the user of a class
    2. To help the developer of a class
    3. To help define friend function
    4. None of the above
Answer :
A
Explanation:
Added By : Jasmeet

  1. What features make C++ so powerful?
    1. Easy implementation
    2. Code reusability
    3. Easy memory management
    4. All the above
Answer :
D
Explanation:
Added By : Jasmeet

Post Your Question
Social Sharing
Search