Object Oriented Programming Fundamentals

Test your knowledge of core OOP concepts including classes, objects, inheritance, polymorphism, encapsulation, and abstraction in programming.

8 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is the best form of coupling?

  1. Data coupling
  2. Tight coupling
  3. Loose coupling
  4. Common coupling
  5. 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?

  1. Modular programming
  2. Reusability
  3. Polymorphism
  4. Recursion
  5. 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?

  1. Common
  2. Protected
  3. Public
  4. User
  5. Private
Question 4 Multiple Choice (Single Answer)

Whenever an object is destroyed which function will be invoked automatically?

  1. Constructor
  2. Allocator
  3. Destructor
  4. Manipulator
  5. Compiler
Question 5 Multiple Choice (Single Answer)

Which of the following terms best suits the overloaded constructors that cannot be differentiated by a compiler?

  1. Ambiguous
  2. Overloaded
  3. Constructor
  4. Destructor
  5. Allocator
Question 6 Multiple Choice (Single Answer)

What is the other name used for a base class?

  1. Child class
  2. Subclass
  3. Derived class
  4. Parent class
  5. Array class
Question 7 Multiple Choice (Single Answer)

In common speech a file is referred as a class, wherein the file is

  1. a member function
  2. a class
  3. an operator
  4. a data item
  5. an object
Question 8 Multiple Choice (Single Answer)

Immutable objects must be initialized in a

  1. member function
  2. manipulator
  3. allocator
  4. operator
  5. constructor