PRACTICE • LEARN • GROW
Module 5 Final Quiz: Polymorphism MCQs
Solve topic-wise placement questions and improve your skills.
Module 5 Final Quiz: Polymorphism Progress
0 of 11 completed
0%
Topic Track
You are viewing MCQs in preview mode. Log in to select options, submit answers, and track your progress.
Log In to Answer
1
What does the word 'Polymorphism' literally mean?
A.
Multiple threads
B.
Many forms
C.
High cohesion
D.
Fast execution
Explanation & Key
Correct Answer:
2
Which of the following is an example of Compile-Time Polymorphism?
A.
Virtual method execution
B.
Method Overloading
C.
Method Overriding
D.
Dynamic type casting
Explanation & Key
Correct Answer:
3
Which method signature change is SUFFICIENT for valid method overloading in Java and C++?
A.
Changing only the return type from int to double
B.
Changing the parameter list (count, types, or order of arguments)
C.
Changing only the access modifier from protected to public
D.
Renaming parameter variables without altering types
Explanation & Key
Correct Answer:
4
How is Run-Time Polymorphism achieved in Java?
A.
By using macros and preprocessor directives
B.
By overriding a superclass method in a subclass and invoking it via a superclass reference
C.
By defining static methods with different names
D.
By using try-catch blocks
Explanation & Key
Correct Answer:
5
What internal mechanism does a C++ or Java runtime use to resolve virtual method calls dynamically?
A.
A Virtual Method Table (vtable) and virtual pointer (vptr)
B.
A global string search through symbol files
C.
Branch prediction registers
D.
DMA controllers
Explanation & Key
Correct Answer:
6
Can private methods in Java be overridden by a subclass for dynamic polymorphism?
A.
Yes, always
B.
No, private methods are bound statically at compile time and cannot be overridden
C.
Only if declared in an abstract class
D.
Yes, with the @Override annotation
Explanation & Key
Correct Answer:
7
Can static methods be overridden for runtime dynamic polymorphism in Java?
A.
Yes, static methods participate in runtime polymorphism
B.
No, static methods are bound to the class at compile time (Method Hiding, not Method Overriding)
C.
Only if synchronized
D.
Yes, if the parent class is abstract
Explanation & Key
Correct Answer:
8
Which language feature allows operators like '+' or '==' to behave differently for custom user-defined objects?
A.
Operator Overloading
B.
Operator Slicing
C.
Operator Casting
D.
Type Coercion
Explanation & Key
Correct Answer:
9
Given 'Shape s = new Circle(); s.draw();', which draw() method executes if Circle overrides Shape's draw()?
A.
Shape's draw()
B.
Circle's draw()
C.
Both draw() methods execute in sequence
D.
A compile error occurs
Explanation & Key
Correct Answer:
10
What is Early Binding (Static Binding)?
A.
Resolving method calls at compile time
B.
Allocating variables before main() runs
C.
Connecting to a database during server startup
D.
Creating threads early in execution
Explanation & Key
Correct Answer:
11
What is Object Slicing in C++?
A.
Dividing an array of objects into chunks
B.
Assigning a derived class object to a base class value object by value, which slices off the derived class attributes
C.
Compressing an object for network transmission
D.
Calling a destructor twice
Explanation & Key
Correct Answer:
Question Palette
Answered
Current
Not Attempted
Wrong