Single Choice Not Set

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

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

Choose the Best Option

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

  • A Furniture has 4 legs
  • B Error
  • C has 4 legs
  • D legs has 4 legs
Correct Answer

Explanation

has 4 legs
No Previous Next Question

Share This Question

Challenge a friend or share with your study group.