MCQ Practice Single Best Answer Topic: Python Class Method and Objects MCQ

Q What will be the output after the following statements?
class Furniture:
    def chair():
        print('It has 4 legs')
    def table():
        print('It has 6 legs')
Furniture.chair()

Question ID
#3919
Subchapter
Python Class Method and Objects MCQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

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

Explanation

It has 4 legs

Share This Question

Share this MCQ with your friends or study group.