15 real Handling Effects 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 Functor?
Mid
A.a wrapper that describes a side-effecting action as a value to be run later, keeping the rest of the code referentially transparent
B.a container that models an optional value as either present with content or empty, avoiding null references
C.a container type with a way to wrap a plain value and a way to chain operations that each return another wrapped value, used to sequence effects
D.any container type that provides a mapping operation to apply a routine to its wrapped value while preserving its structure
A.Functor — a wrapper that describes a side-effecting action as a value to be run later, keeping the rest of the code referentially transparent
B.Functor — any container type that provides a mapping operation to apply a routine to its wrapped value while preserving its structure
C.Functor — a container type with a way to wrap a plain value and a way to chain operations that each return another wrapped value, used to sequence effects
D.Functor — a container that models an optional value as either present with content or empty, avoiding null references
5. Which term means: "a container type with a way to wrap a plain value and a way to chain operations that each return another wrapped value, used to sequence effects"?
A.Monad — a wrapper that describes a side-effecting action as a value to be run later, keeping the rest of the code referentially transparent
B.Monad — any container type that provides a mapping operation to apply a routine to its wrapped value while preserving its structure
C.Monad — a container that models an optional value as either present with content or empty, avoiding null references
D.Monad — a container type with a way to wrap a plain value and a way to chain operations that each return another wrapped value, used to sequence effects
A.Maybe type — a container that models an optional value as either present with content or empty, avoiding null references
B.Maybe type — any container type that provides a mapping operation to apply a routine to its wrapped value while preserving its structure
C.Maybe type — a container type with a way to wrap a plain value and a way to chain operations that each return another wrapped value, used to sequence effects
D.Maybe type — a container that holds one of two possibilities, conventionally a success value or a failure value, for error handling without exceptions
11. Which term means: "a container that holds one of two possibilities, conventionally a success value or a failure value, for error handling without exceptions"?
A.Either type — a container that holds one of two possibilities, conventionally a success value or a failure value, for error handling without exceptions
B.Either type — a container that models an optional value as either present with content or empty, avoiding null references
C.Either type — a wrapper that describes a side-effecting action as a value to be run later, keeping the rest of the code referentially transparent
D.Either type — any container type that provides a mapping operation to apply a routine to its wrapped value while preserving its structure
14. Which term means: "a wrapper that describes a side-effecting action as a value to be run later, keeping the rest of the code referentially transparent"?
A.IO monad — a container that models an optional value as either present with content or empty, avoiding null references
B.IO monad — a container that holds one of two possibilities, conventionally a success value or a failure value, for error handling without exceptions
C.IO monad — a container type with a way to wrap a plain value and a way to chain operations that each return another wrapped value, used to sequence effects
D.IO monad — a wrapper that describes a side-effecting action as a value to be run later, keeping the rest of the code referentially transparent
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.