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

Posted by: Pdfprep Category: PCAP-31-03 Tags: , ,

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

Leave a Reply

Your email address will not be published.