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

What is the output of the following piece of code when executed in the Python shell?

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

What is the output of the following piece of code when executed in the Python shell?

>>> class A:
        pass
>>> class B(A):
        pass
>>> obj=B()
>>> isinstance(obj,A)

Pick ONE option

Choose one option.
Show answer & explanation
Answer: A. A) True

Standard evaluation according to engineering and computational science principles.

Step-by-step Derivation:
Step 1: Analyze problem specification.
Step 2: Derive theoretical solution.
Step 3: Select corresponding answer option.