OOPS-Concept

13.Which of the following access specifier is used as a default in a class definition?

A. Private
B. Public
C. Friend
D. Protected

View Answer


14.Not using virtual destructor feature in a C++ object oriented programing can cause

A. An Issue in creating object of the class
B. Memory leak
C.An issue in calling base class destructor
D.None of the above

View Answer


15. If private member functions are to be declared in C++ then __________

A. private(private member list)
B. private
C. private:
D. private :-

View Answer


16.The order in which operands are evaluated in an expression is predictable if the operator is

A. +
B. %
C. *
D. &&

View Answer


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

A. Templates
B. Function overloading
C. Operator overloading
D. All of the above

View Answer


18.IS A relationship in C++ is

A. Inheritance
B. Encapsulation
C. Composition
D. None of the above

View Answer






Also check :


Discussion


* You must be logged in to add comment.