MCQs > IT & Programming > Python > Output of the following Python code? class Ba(object): def _init_(se|f, x): self‌ix = x+2 class De(Ba): def _init_(self. x. y): Bax = x‘2 self.y = y+2 def printXY(self): print(Ba.x+2, self.y‘2) d = De(10’2, 20+2) d.printXYO

Python MCQs

What will be the correct output of the following Python code?

class Ba(object):

def _init_(se|f, x):

self‌ix = x+2

class De(Ba):

def _init_(self. x. y):

Bax = x‘2

self.y = y+2

def printXY(self):

print(Ba.x+2, self.y‘2)

d = De(10’2, 20+2)

d.printXYO


Answer

Correct Answer: 42 48

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it