Python_Institute
PCAP-31-03 · Question #53
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)
The correct answer is A. isinstance(obj_b,A) B. A.VarA == 1. See the full explanation below for the reasoning.
Question
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)
Exhibit
Options
- Aisinstance(obj_b,A)
- BA.VarA == 1
- Cobj_a is obj_aa
- DB.VarA == 1
How the community answered
(28 responses)- A75% (21)
- C18% (5)
- D7% (2)
Community Discussion
No community discussion yet for this question.
