Questions & Answers(Frequently asked questions)Questions & Answers › Tag: DecoratorFilter:AllOpenResolvedClosedUnansweredSort byViewsAnswersVotesWhich of the following decorator function is used to create a static method?AnsweredAdam asked 2 years ago • Programming Language4491 views1 answers0 votesWhat is the output of the following code? class A: @staticmethod @classmethod def m1(self): print('Hello') A.m1(5)AnsweredAdam asked 2 years ago • Programming Language5759 views1 answers0 votesThe static Method is bound to Objects and Class.AnsweredAdam asked 2 years ago • Programming Language3492 views1 answers0 votesWhat is the output of the following code? class A: @classmethod def getC(self): print('In Class A, method getC.') class B(A): pass b = B() B.getC() b.getC()AnsweredAdam asked 2 years ago • Programming Language5495 views1 answers0 votesWhich of the following decorator function is used to create a class method?AnsweredAdam asked 2 years ago • Programming Language4189 views1 answers0 votesWhat is the output of the following code? class A: @staticmethod def m1(self): print(‘Static Method’) @classmethod def m1(self): print(‘Class Method’) A.m1()AnsweredAdam asked 2 years ago • Programming Language7454 views1 answers0 votesWhat is the output of the following code? def s1(x, y): return x*y class A: @staticmethod def s1(x, y): return x + y def s2(self, x, y): return s1(x, y) a = A() print(a.s2(3, 7))AnsweredAdam asked 2 years ago • Programming Language5445 views1 answers0 votes