Home / CSE MCQs / C++ - MCQs :: Classes - C++

CSE MCQs :: C++ - MCQs

  1. Which interface decides determines how your class will be used by other program?
  2. A.
    public
    B.
    private
    C.
    protected
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Pick out the correct statement about override.
  4. A.
    Overriding refers to a derived class function that has the same name and signature as a base class virtual function.
    B.
    Overriding has different names
    C.
    both a & b
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. How many ways of reusing are there in class hierarchy?
  6. A.
    1
    B.
    2
    C.
    3
    D.
    4

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. How many types of class are there in c++?
  8. A.
    1
    B.
    2
    C.
    3
    D.
    4

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. What will happen when introduce the interface of classes in a run-time polymorphic hierarchy?
  10. A.
    Separation of interface from implementation
    B.
    Merging of interface from implementation
    C.
    Separation of interface from debugging
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which classes are called as mixin?
  12. A.
    Represent a secondary design
    B.
    Classes express functionality which represent responsibilities.
    C.
    Both a & b
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. What is the use of clog?
  14. A.
    Standard logging stream
    B.
    Error stream
    C.
    Input stream
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. How many types of guarantees are there in exception class can have?
  16. A.
    1
    B.
    2
    C.
    3
    D.
    4

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which operator is used to create the user-defined streams in c++?
  18. A.
    >>
    B.
    &
    C.
    Both a & b

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. What does the cerr represent?
  20. A.
    Standard error stream
    B.
    Standard logging stream
    C.
    Input stream
    D.
    Output stream

    View Answer

    Workspace

    Discuss Discuss in Forum