1. Home
  2. Data Science
  3. Python
  4. Which special method allows an object to be called like a…

Added 25 Nov 2026

Which special method allows an object to be called like a function in Python?

  1. __run__
  2. __call__ Correct answer
  3. __exec__
  4. __invoke__

Correct answer

B. __call__

7 views

MCQSEXAM

Explanation

Defining __call__ makes instances callable.

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