Home > Object Oriented Programming > Quizzes > Object Oriented Programming Practice Test: Member Functions & its Types
Object Oriented Programming Practice Test: Member Functions & its Types
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “Which operator among the following can be overloaded using both friend function …”
Quiz on virtual and abstract functions, member function types, member operator function, overloading and overriding member functions, constant, private and public member functions. In object-oriented programming (OOP), a member function is a function that is associated with a specific class or object. Member functions are also called "methods" in some languages. They are declared within a class or struct and can be defined inside or outside the class definition. Member functions are used to access and modify the data members of a class. There are different types of member functions, each... Show more
Object Oriented Programming Practice Test: Member Functions & its Types
Time left 00:00
25 Questions

1. The abstract method definition can be made ___________ in derived class.
2. Which object’s members can be called directly while overloading operator function is used (In function definition)?
3. What are public member functions?
4. The abstract methods can never be ___________ in a base class.
5. In java ______________ takes care of managing memory for objects dynamically.
6. How is it possible to have both const and non-const version of a function?
7. What is the syntax of a const member function?
8. Which type of member functions get inherited in the same specifier in which the inheritance is done? (If private inheritance is used, those become private and if public used, those become public)
9. Which function among the following can’t be accessed outside the class in java in same package?
10. What is the syntax to overload an operator?
11. Which among the following is mandatory condition for operators overloading?
12. Which language doesn’t support the method overriding implicitly?
13. If a function is to be made const, which is the correct syntax?
14. All the operators can be overloaded using the member function operator overloading.
15. When the friend operator overloading is converted into member operator overloading _______________
16. How many private member functions are allowed in a class?
17. It is ____________________ to define the abstract functions.
18. Abstract functions of a base class _________________
19. Virtual functions can never be made _______________
20. If a function in java is declared private then it __________________
21. What are const member functions?
22. How are abstract functions different from the abstract functions?
23. If the left operand is pointed by *this pointer, what happens to other operands?
24. Which operator can be used to check the size of an object?
25. Can a constructor function be constant?