MCQ Single Best Answer Not Set

QWhat will be the output after the following statements?
class Furniture:
    def chair(x):
        print('It has %s legs' % x)
    def table(x):
        print('It has %s legs' % x)
Furniture.table(6)

ID: #3918 Python Class Method and Objects MCQ 195 views
Question Info
#3918Q ID
Not SetDifficulty
Python Class Method and Objects MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A It has 4 legs
  • B It has no legs
  • C It has 0 legs
  • D It has 6 legs
Correct Answer: Option D

Explanation

It has 6 legs

Share This Question

Challenge a friend or share with your study group.