MCQ - OOPS Concept in C++ Programming

21. 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


22. 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


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

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

View Answer


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

A. Addition
B. Modulus
C. Multiply
D. &&

View Answer


25. 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


26. IS A relationship in C++ is

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

View Answer


27. Which of the following correctly describes overloading of functions?

A. Virtual polymorphism
B. Transient polymorphism
C. Ad-hoc polymorphism
D. Pseudo polymorphism

View Answer


28. How many loops are there in C++ 98?

A. 2
B. 3
C. 4
D. 5

View Answer





Also check :


Discussion


* You must be logged in to add comment.