Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)

Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)

A . obj_b.prop_a == 3
B . hasattr(obj_b, ‘prop_aa’)
C . isinstance(obj_c,A)
E . VarA == 3

Answer: B,C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments