Object Oriented Programming Fundamentals
Test your knowledge of core OOP concepts including classes, objects, inheritance, polymorphism, encapsulation, and abstraction in programming.
Questions
Question 1 Multiple Choice (Single Answer)
Which of the following is the best form of coupling?
- Data coupling
- Tight coupling
- Loose coupling
- Common coupling
- Content coupling
Question 2 Multiple Choice (Single Answer)
In which process will the attention be paid to the essential properties while negligible details are ignored?
- Modular programming
- Reusability
- Polymorphism
- Recursion
- Abstraction
Question 3 Multiple Choice (Single Answer)
To expose a data member to the program, it must be declared in which section of the class?
- Common
- Protected
- Public
- User
- Private
Question 4 Multiple Choice (Single Answer)
Whenever an object is destroyed which function will be invoked automatically?
- Constructor
- Allocator
- Destructor
- Manipulator
- Compiler
Question 5 Multiple Choice (Single Answer)
Which of the following terms best suits the overloaded constructors that cannot be differentiated by a compiler?
- Ambiguous
- Overloaded
- Constructor
- Destructor
- Allocator
Question 6 Multiple Choice (Single Answer)
What is the other name used for a base class?
- Child class
- Subclass
- Derived class
- Parent class
- Array class
Question 7 Multiple Choice (Single Answer)
In common speech a file is referred as a class, wherein the file is
- a member function
- a class
- an operator
- a data item
- an object
Question 8 Multiple Choice (Single Answer)
Immutable objects must be initialized in a
- member function
- manipulator
- allocator
- operator
- constructor