Class Object in Python MCQs Exercise I


Ques 1 Class Object


What is the output of the following Python Code?


class Class:
    def method():
    print("SmallCode")
Class.method()

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


d is the correct option