1. Home
  2. Data Science
  3. Python
  4. What happens if you instantiate a class with an…

Added 25 Nov 2026

What happens if you instantiate a class with an unimplemented abstractmethod in Python?

  1. The method returns None
  2. TypeError Correct answer
  3. AttributeError
  4. Nothing

Correct answer

B. TypeError

8 views

MCQSEXAM

Explanation

Python raises TypeError because the abstract class cannot be instantiated.

Reference

Asked in: Python Interview OOP

https://docs.python.org/3/tutorial/classes.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs