Questions & Answers(Frequently asked questions)Questions & Answers › Tag: Higher Order functionsFilter:AllOpenResolvedClosedUnansweredSort byViewsAnswersVotesWhat is the output of the following code? def outer(x, y): def inner1(): return x+y def inner2(): return x*y return (inner1, inner2) (f1, f2) = outer(10, 25) print(f1()) print(f2()) a. 35 250 b. 35 250 c. 250 35 d. 250 35AnsweredAdam asked 3 years ago • Programming Language1927 views1 answers0 votesA closure is always a function.AnsweredAdam asked 3 years ago • Programming Language6598 views1 answers0 votesWhat is the output of the following code? v = 'Hello' def f(): v = 'World' return v print(f()) print(v)AnsweredAdam asked 3 years ago • Programming Language4043 views1 answers0 votesWhat is the output of the following code? def f(x): return 3*x def g(x): return 4*x print(f(g(2)))AnsweredAdam asked 3 years ago • Programming Language3658 views1 answers0 votesWhich of the following is false about the functions in Python?AnsweredAdam asked 3 years ago • Programming Language4586 views1 answers-1 votesA closure does not hold any data with it.AnsweredAdam asked 3 years ago • Programming Language6427 views1 answers0 votesWhat is the output of the following code? def outer(x, y): def inner1(): return x+y def inner2(z): return inner1() + z return inner2 f = outer(10, 25) print(f(15))AnsweredAdam asked 3 years ago • Programming Language8567 views1 answers-1 votesWhat is the output of the following code? def multipliers(): return [lambda x : i * x for i in range(4)] print([m(2) for m in multipliers()])AnsweredAdam asked 3 years ago • Programming Language13803 views1 answers0 votes