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
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
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"?
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
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
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.