Python_Institute
PCAP-31-03 · Question #139
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 C. has atr (B, 'get') D. obj_c.get() == 2. 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)
Options
- Ais instance(obj_b,C)
- BC._C__VarA == 2
- Chas atr (B, 'get')
- Dobj_c.get() == 2
How the community answered
(56 responses)- A5% (3)
- B9% (5)
- C86% (48)
Community Discussion
No community discussion yet for this question.