18 Functions questions from the Functional Programming bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
B.the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
C.fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
D.transforming a routine of several arguments into a chain of single-argument routines each returning the next
Answer + AI explanation with Pro
2. Which term means: "the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value"?
Junior
A.Currying
B.First-class functions
C.Higher-order function
D.Partial application
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.First-class functions — fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
B.First-class functions — the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
C.First-class functions — the number of arguments that a given routine accepts
D.First-class functions — a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
Answer + AI explanation with Pro
4. What is Higher-order function?
Junior
A.the number of arguments that a given routine accepts
B.the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
C.fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
D.a routine that takes one or more other routines as arguments or returns one as its result
Answer + AI explanation with Pro
5. Which term means: "a routine that takes one or more other routines as arguments or returns one as its result"?
Junior
A.Higher-order function
B.Partial application
C.Closure
D.Currying
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Higher-order function — transforming a routine of several arguments into a chain of single-argument routines each returning the next
B.Higher-order function — the number of arguments that a given routine accepts
C.Higher-order function — the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
D.Higher-order function — a routine that takes one or more other routines as arguments or returns one as its result
Answer + AI explanation with Pro
7. What is Closure?
Mid
A.a routine that takes one or more other routines as arguments or returns one as its result
B.the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
C.the number of arguments that a given routine accepts
D.a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
Answer + AI explanation with Pro
8. Which term means: "a routine bundled together with references to the surrounding variables it captured from the scope where it was defined"?
Mid
A.Currying
B.Arity
C.Partial application
D.Closure
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Closure — transforming a routine of several arguments into a chain of single-argument routines each returning the next
B.Closure — the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
C.Closure — a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
D.Closure — fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
Answer + AI explanation with Pro
10. What is Currying?
Mid
A.fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
B.the number of arguments that a given routine accepts
C.the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
D.transforming a routine of several arguments into a chain of single-argument routines each returning the next
Answer + AI explanation with Pro
11. Which term means: "transforming a routine of several arguments into a chain of single-argument routines each returning the next"?
Mid
A.Currying
B.Closure
C.Partial application
D.First-class functions
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Currying — transforming a routine of several arguments into a chain of single-argument routines each returning the next
B.Currying — a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
C.Currying — fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
D.Currying — the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
Answer + AI explanation with Pro
13. What is Partial application?
Mid
A.fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
B.the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
C.a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
D.transforming a routine of several arguments into a chain of single-argument routines each returning the next
Answer + AI explanation with Pro
14. Which term means: "fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones"?
Mid
A.Partial application
B.Closure
C.First-class functions
D.Currying
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Partial application — a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
B.Partial application — fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
C.Partial application — the number of arguments that a given routine accepts
D.Partial application — a routine that takes one or more other routines as arguments or returns one as its result
Answer + AI explanation with Pro
16. What is Arity?
Senior
A.the number of arguments that a given routine accepts
B.a routine that takes one or more other routines as arguments or returns one as its result
C.a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
D.transforming a routine of several arguments into a chain of single-argument routines each returning the next
Answer + AI explanation with Pro
17. Which term means: "the number of arguments that a given routine accepts"?
Senior
A.Currying
B.Arity
C.Closure
D.Higher-order function
Answer + AI explanation with Pro
18. Which statement is correct?
Senior
A.Arity — transforming a routine of several arguments into a chain of single-argument routines each returning the next
B.Arity — the number of arguments that a given routine accepts
C.Arity — a routine that takes one or more other routines as arguments or returns one as its result
D.Arity — a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Functions question come with Pro.