Functions interview questions

18 real Functions questions from the Functional Programming bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is First-class functions?

Junior
  1. A.a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
  2. B.the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
  3. C.fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
  4. D.transforming a routine of several arguments into a chain of single-argument routines each returning the next
Reveal the answer + AI explanation — free account

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
  1. A.Currying
  2. B.First-class functions
  3. C.Higher-order function
  4. D.Partial application
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.First-class functions — fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
  2. 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
  3. C.First-class functions — the number of arguments that a given routine accepts
  4. D.First-class functions — a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
Reveal the answer + AI explanation — free account

4. What is Higher-order function?

Junior
  1. A.the number of arguments that a given routine accepts
  2. B.the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
  3. C.fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
  4. D.a routine that takes one or more other routines as arguments or returns one as its result
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Higher-order function — transforming a routine of several arguments into a chain of single-argument routines each returning the next
  2. B.Higher-order function — the number of arguments that a given routine accepts
  3. 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
  4. D.Higher-order function — a routine that takes one or more other routines as arguments or returns one as its result
Reveal the answer + AI explanation — free account

7. What is Closure?

Mid
  1. A.a routine that takes one or more other routines as arguments or returns one as its result
  2. B.the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
  3. C.the number of arguments that a given routine accepts
  4. D.a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Closure — transforming a routine of several arguments into a chain of single-argument routines each returning the next
  2. B.Closure — the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
  3. C.Closure — a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
  4. D.Closure — fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
Reveal the answer + AI explanation — free account

10. What is Currying?

Mid
  1. A.fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
  2. B.the number of arguments that a given routine accepts
  3. C.the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
  4. D.transforming a routine of several arguments into a chain of single-argument routines each returning the next
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Currying — transforming a routine of several arguments into a chain of single-argument routines each returning the next
  2. B.Currying — a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
  3. C.Currying — fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
  4. D.Currying — the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
Reveal the answer + AI explanation — free account

13. What is Partial application?

Mid
  1. A.fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
  2. B.the language property that lets routines be assigned to variables, passed as arguments, and returned as results like any other value
  3. C.a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
  4. D.transforming a routine of several arguments into a chain of single-argument routines each returning the next
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.Partial application — a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
  2. B.Partial application — fixing some of a routine's arguments in advance to produce a new routine that takes the remaining ones
  3. C.Partial application — the number of arguments that a given routine accepts
  4. D.Partial application — a routine that takes one or more other routines as arguments or returns one as its result
Reveal the answer + AI explanation — free account

16. What is Arity?

Senior
  1. A.the number of arguments that a given routine accepts
  2. B.a routine that takes one or more other routines as arguments or returns one as its result
  3. C.a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
  4. D.transforming a routine of several arguments into a chain of single-argument routines each returning the next
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Senior
  1. A.Arity — transforming a routine of several arguments into a chain of single-argument routines each returning the next
  2. B.Arity — the number of arguments that a given routine accepts
  3. C.Arity — a routine that takes one or more other routines as arguments or returns one as its result
  4. D.Arity — a routine bundled together with references to the surrounding variables it captured from the scope where it was defined
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Functions free