Assuming that the code below has been placed inside a file named code.py and executed successfully, which of the following expressions evaluate to True? (Choose two.)
class ClassA:
var = 1
def __init__(self, prop):
prop1 = prop2 = prop
class ClassB(ClassA):
def __init__(self, prop):
prop3 = prop ** 2
super().__init__(prop)
def __str__(self):
return 'Object'
Object = ClassA(2)
A and B are True
upvoted 3 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
macxsz
Highly Voted 2 years, 7 months agoDamon54
Most Recent 9 months, 2 weeks agoseaverick
10 months agokstr
1 year agoAmfortas
2 years, 2 months agoJnanada
2 years, 3 months agosimplex06
2 years, 4 months ago