Class Object in Python MCQs Exercise II


Ques 1 Class Object


What is the output of the following Python Code?


class Class:
@classmethod
        def method(cls):
        print("SmallCode")
obj=Class()
obj.method()

  a) SmallCode
  b) Can Accessible
  c) True
  d) Error


a is the correct option