Skip to content

Object-Oriented Programming (OOP)

An OOP concept that allows objects of different classes to be treated through a common interface. What is this concept called?

Difficulty: Medium

About this MCQ

This Medium Object-Oriented Programming (OOP) MCQ checks one syllabus fact.

The question is: “An OOP concept that allows objects of different classes to be treated through a common interface. What is this concept called?”

The accepted answer is C. Polymorphism. “An OOP concept that allows objects of different classes to be treated through a common interface. What is this concept called” is answered by Polymorphism (option C). Option A (“Class”) does not match the stem; it is a near-miss used to catch incomplete recall of Polymorphism. Option B (“Constructor”) does not match the stem; it is a near-miss used to catch incomplete recall of Polymorphism. Remaining alternatives (Encapsulation) fall outside the same rule and should be eliminated once Polymorphism is identified. Object-Oriented Programming (OOP) questions of this type reward precise definitions rather than approximate associations. Object-Oriented Programming (OOP) recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.

Correct answer

C. Polymorphism

Explanation

“An OOP concept that allows objects of different classes to be treated through a common interface. What is this concept called” is answered by Polymorphism (option C). Option A (“Class”) does not match the stem; it is a near-miss used to catch incomplete recall of Polymorphism. Option B (“Constructor”) does not match the stem; it is a near-miss used to catch incomplete recall of Polymorphism. Remaining alternatives (Encapsulation) fall outside the same rule and should be eliminated once Polymorphism is identified. Object-Oriented Programming (OOP) questions of this type reward precise definitions rather than approximate associations. Object-Oriented Programming (OOP) recall of this distinction is a regular item in FPSC, PPSC, NTS, and CSS papers.

Source: Object-Oriented Programming (OOP) Official Reference Guide

Tags: computer science, oop, object-oriented programming, software design

Submitted by: MCQsHub Editorial

Related MCQs

More Object-Oriented Programming (OOP) MCQs