Concept on OOPs MCQ

What is the answer to this question?
Q­9 What is the use of parametric polymorphism?(more than one)
A) A function or a data type can be written generically so that it can
handle values identically without depending on their type
B) A function or a data type can be written generically so that it can
handle values identically being dependant on their type
C) A function or a data type that can accept parameters
D) Both a and c
Please explain the answer.

hello @Sakshi2004

Parametric polymorphism is a programming language technique that enables the generic definition of functions and types, without a great deal of concern for type-based errors.
with this definition option A is correct. C is also correct as we are dealing with parametric programming.

D should be correct answer

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.