logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How many types of constructor are there in C++?


  • Options
  • A. 1
  • B. 2
  • C. 3
  • D. 4

  • Correct Answer


  • Explanation

    There are three types of constructor in C++. They are Default constructor, Parameterized constructor, Copy constructor.


  • Technology problems


    Search Results


    • 1. What does inheriatance allows you to do?

    • Options
    • A. create a class
    • B. access methods
    • C. create a hierarchy of classes
    • D. None of the mentioned
    • Discuss
    • 2. What is meant by pure virtual function?

    • Options
    • A. Function which does not have definition of its own.
    • B. Function which does have definition of its own.
    • C. Function which does not have any return type.
    • D. None of the mentioned
    • Discuss
    • 3. Which of the following can derived class inherit?

    • Options
    • A. members
    • B. functions
    • C. both a & b
    • D. None of the above
    • Discuss
    • 4. A special member function of a class, which is invoked automatically whenever an object goes out of the scope is called

    • Options
    • A. Constructor
    • B. Destructor
    • C. Friend function
    • D. None of the above
    • Discuss
    • 5. What do you mean by inline function?
    • Discuss
    • 6. What is a template?

    • Options
    • A. A template is a formula for creating a generic class
    • B. A template is used to manipulate the class
    • C. A template is used for creating the attributes
    • D. none of the mentioned
    • Discuss
    • 7. What is meant by template specialization?

    • Options
    • A. It will have certain data types to be fixed.
    • B. It will make certain data types to be dynamic.
    • C. Certain data types are invalid
    • D. None of the mentioned
    • Discuss
    • 8. How many kinds of entities are directly parameterized in c++?

    • Options
    • A. 1
    • B. 2
    • C. 3
    • D. 4
    • Discuss
    • 9. Where does the exceptions are used?

    • Options
    • A. Exceptions are used when postconditions of a function cannot be satisfied.
    • B. Exceptions are used when postconditions of a function can be satisfied.
    • C. To preserve the program
    • D. none of these
    • Discuss
    • 10. Where does the exception are handled?

    • Options
    • A. inside the program
    • B. outside the regular code
    • C. both a & b
    • D. none of these
    • Discuss


    Comments

    There are no comments.

Enter a new Comment