AMP

Chapter 15: Polymorphism — Online MCQ Test

COMPUTER SCIENCE · CLASS 11th · Tamil Nadu State Board
Practice Chapter 15: Polymorphism with a free chapter-wise online MCQ test. This chapter covers: Exploring dynamic behavior this chapter covers compile-time and run-time polymorphism mechanisms. Students master function overloading and operator overloading to execute custom op.... AI-generated questions from basic to board-exam level, with instant results and explanations.

Start Exam on Full Site →

Chapter 15: Polymorphism — Important Questions & Answers

What does the term 'Polymorphism' literally mean?
  • A. Many forms
  • B. Single function
  • C. Binary operation
  • D. Memory management
Answer: A. Many forms
The word polymorphism is derived from Greek words 'poly' meaning many and 'morph' meaning forms.
Which of the following is a type of polymorphism in C++?
  • A. Compile-time polymorphism
  • B. Run-time polymorphism
  • C. Both A and B
  • D. None of the above
Answer: C. Both A and B
C++ supports both compile-time (static) and run-time (dynamic) polymorphism.
Which of the following is achieved through function overloading?
  • A. Compile-time polymorphism
  • B. Run-time polymorphism
  • C. Encapsulation only
  • D. Inheritance only
Answer: A. Compile-time polymorphism
Function overloading allows multiple functions to have the same name, which is resolved at compile time.
Why does changing only the return type not result in function overloading?
  • A. The compiler cannot differentiate calls based solely on return type
  • B. It violates memory allocation rules
  • C. It causes compile-time errors in all cases
  • D. Functions must have different return types anyway
Answer: A. The compiler cannot differentiate calls based solely on return type
The compiler differentiates overloaded functions based on the parameter list, not the return type.
In the context of polymorphism, why is 'late binding' essential for library design?
  • A. It allows future extensions to override base class behavior without recompiling the base library
  • B. It makes code execute faster than early binding
  • C. It prevents the use of pointers
  • D. It is required for every function call
Answer: A. It allows future extensions to override base class behavior without recompiling the base library
Late binding (virtual functions) allows base class methods to be redefined in derived classes, enabling extensibility at runtime.