Quiz
Take this quiz to test your understanding of the concepts explained in this chapter!
1
What will the output of the following code be?
class Class_Blue:
def blue_tag(self):
print("B", end=' ')
class Class_Orange:
def orange_tag(self):
print("O", end=' ')
class Class_Green(Class_Orange, Class_Blue):
def green_tag(self):
print("G", end=' ')
class Class_Yellow(Class_Orange):
def yellow_tag(self):
print("Y", end=' ')
CG = Class_Green()
CY = Class_Yellow()
CG.blue_tag()
CY.yellow_tag()
A)
B O
B)
B Y
C)
G B O
D)
G B Y
Question 1 of 50 attempted
Get hands-on with 1200+ tech skills courses.