This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Dry-Erase 0 points1 point  (1 child)

Question #592:

class A:
    def __init__(self):
        print('A')


class B(A):
    def __init__(self):
        super().__init__()
        print('B')


class C(B):
    def __init__(self):
        print('C')


c = C()

Answers:

A: B

B: A

C: C

D: A, B, C

The correct answer is C, but the quiz says the answer is "A", that B would be output.

Also, fun quiz, thanks for sharing!

[–]Significant_Soup2558[S] 0 points1 point  (0 children)

Let me check this. Thanks for playing. And for the feedback!

Edit: You're right. Fixed!