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 2 years ago • Programming Language1898 views1 answers0 votesA closure is always a function.AnsweredAdam asked 2 years ago • Programming Language6550 views1 answers0 votesWhat is the output of the following code? v = 'Hello' def f(): v = 'World' return v print(f()) print(v)AnsweredAdam asked 2 years ago • Programming Language4008 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 2 years ago • Programming Language3636 views1 answers0 votesWhich of the following is false about the functions in Python?AnsweredAdam asked 2 years ago • Programming Language4534 views1 answers-1 votesA closure does not hold any data with it.AnsweredAdam asked 2 years ago • Programming Language6370 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 2 years ago • Programming Language8514 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 2 years ago • Programming Language13709 views1 answers0 votes