MCQs > IT & Programming > Python > Choose the correct answer from the given options. class D: def __init__(self, l, c): self.l = l self.c = c def b(self): b = '1' * 2 return b if __name__ == '__main__': d = D(4, '0') b = d.b() print(b)

Python MCQs

Analyse the following Python code and choose the correct answer from the given options.

class D:

def __init__(self, l, c):

    self.l = l

    self.c = c

     

def b(self):

    b = "1" * 2

    return b

if __name__ == "__main__":

d = D(4, "0")

b = d.b()

print(b)


Answer

Correct Answer:

11

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