MCQs > IT & Programming > Python > Correct answer from the given options. class St: stm = stm = 'B' def __init__(self, n, r): self.n = n self.r = r a = St('D', 3) print (a.stm) St.stm = 'D' b = St('A', 4) print (a.stm) print (b.stm)

Python MCQs

Find the output of the following Python code and choose the correct answer from the given options.

class St:

stm = stm = 'B' def __init__(self, n, r): self.n = n self.r = r a = St("D", 3) print (a.stm) St.stm = "D" b = St("A", 4) print (a.stm) print (b.stm)

Answer

Correct Answer:

B

D

D


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

More Python MCQ Questions

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it