Assuming that the code below has been executed successfully, which of the expressions evaluate to True? (Choose two.)

Select an option, then click Submit answer.
Reference / correct answer:
Most accepted answer: B. 'data' in Class.__dict__
Community votes: B=4, C=3
There is a typo in answer C. "var" should be capitalized "Var": class Class: Var = data = 1 def __init__(self,value): self.prop = value Object = Class(2) print(len(Class.__dict__) == 1) # False print("data" in Class.__dict__) # True print("Var" in Class.__dict__) # True print("data" in Object.__dict__) # False print(Class.__dict__) print("*************") print(Object.__dict__) upvoted 13 times
print(isinstance(obj_b,A)) # ans A, The isinstance() function returns True # if the specified object is of the specified type # return false print(A.VarA ==1) # ans B, A.VarA = 1, so A.VarA ==1. Then,it return true print(obj_a is obj_aa) # ans C, return false print(B.VarA == 1) # ans D, B.VarA = 2, so B.VarA not == 1. Then, it return false The correct answer should be B,C upvoted 1 times
The correct answer should be B and C upvoted 1 times
Selected Answer: BC Correct Answer should be BC upvoted 2 times
Correct Answer should be BC upvoted 1 times