Python - Polymorphism and Dynamic BehaviorWhich module must be imported to use abstract base classes in Python?AabcBabstractCbaseDinterfaceCheck Answer
Step-by-Step SolutionSolution:Step 1: Recall the standard library module for ABCsPython provides abstract base class support in the 'abc' module.Step 2: Verify module namesThere is no standard 'abstract', 'base', or 'interface' module for ABCs.Final Answer:abc -> Option AQuick Check:ABC module = abc [OK]Quick Trick: Use 'abc' module for abstract base classes [OK]Common Mistakes:Trying to import non-existent modules like 'abstract'Confusing module names with other languagesForgetting to import the module before using ABC
Master "Polymorphism and Dynamic Behavior" in Python9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Python Quizzes Class Methods and Static Methods - Use cases for each method type - Quiz 11easy Classes and Object Lifecycle - Instance attributes - Quiz 5medium Encapsulation and Data Protection - Name mangling - Quiz 14medium Encapsulation and Data Protection - Getter and setter methods - Quiz 8hard Exception Handling Fundamentals - Try–except execution flow - Quiz 1easy File Reading and Writing Strategies - Writing multiple lines - Quiz 14medium Inheritance and Code Reuse - Purpose of inheritance - Quiz 2easy Inheritance and Code Reuse - Parent and child classes - Quiz 8hard Modules and Code Organization - Import aliasing - Quiz 9hard Multiple Inheritance and Method Resolution - Diamond problem - Quiz 12easy