Questions & Answers(Frequently asked questions)Questions & Answers › Tag: Higher Order FunctionFilter:AllOpenResolvedClosedUnansweredSort byViewsAnswersVotesWhich of the following decorator function is used to create a static method?AnsweredAdam asked 3 years ago • Programming Language4555 views1 answers0 votesWhat is the output of the following code? class A: @staticmethod @classmethod def m1(self): print('Hello') A.m1(5)AnsweredAdam asked 3 years ago • Programming Language5906 views1 answers0 votesThe static Method is bound to Objects and Class.AnsweredAdam asked 3 years ago • Programming Language3566 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 3 years ago • Programming Language5617 views1 answers0 votesWhich of the following decorator function is used to create a class method?AnsweredAdam asked 3 years ago • Programming Language4272 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 3 years ago • Programming Language7638 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 3 years ago • Programming Language5631 views1 answers0 votes