OA. free
Free
Micron Core Computer Science Core Computer Science Medium

Choose the correct statement(s) from the given

Micron technical mcq question, verified with a worked answer. Free to practise - no sign-up.

Choose the correct statement(s) from the given

Choose one option.
Show answer & explanation
Answer: D. Only (I)

Statement (I) is correct: static polymorphism (compile-time polymorphism via method overloading and templates) is indeed resolved at compile time, also called early binding. Statement (II) is false: static binding occurs at compile time, not runtime; dynamic binding occurs at runtime. Statement (III) is false: method overriding is an example of dynamic binding (runtime polymorphism), not static binding—the correct method is resolved at runtime based on the actual object type. Therefore, only statement (I) is true.

Step-by-step Derivation:
Evaluate each statement:

(I) Static Polymorphism = Compile-time Polymorphism (method overloading, generics/templates)

  • Resolved at compile time → early binding ✓ TRUE

(II) Static binding occurs at run time

  • Static binding = compile-time resolution
  • Contradicts the definition of static binding ✗ FALSE

(III) Method overriding is static binding resolved at compile time

  • Method overriding is the mechanism for Runtime Polymorphism (dynamic dispatch)
  • The correct method is determined at runtime based on object type, not compile time ✗ FALSE

Conclusion: Only (I) is correct → Answer is D