Beginner
Compilers & Programming Language Theory
Q36 / 100
What is a monad in functional programming?
Correct! Well done.
Incorrect.
The correct answer is B) A design pattern and type class abstracting sequential computation with context (option, list, IO, state), supporting flatMap/bind for chaining
B
Correct Answer
A design pattern and type class abstracting sequential computation with context (option, list, IO, state), supporting flatMap/bind for chaining
Explanation
Monads: Option (maybe null), List (non-determinism), IO (side effects), State (threading state). Operations: return (wrap value), bind (>>=, chain computations). "A monad is just a monoid in the category of endofunctors."
Progress
36/100