What is a lambda function in functional programming?

What is a lambda function in functional programming?

a) A function with no arguments
b) An anonymous function defined without a name
c) A function that performs I/O operations
d) A function with global scope

Answer:

b) An anonymous function defined without a name

Explanation:

A lambda function is an anonymous function that is defined without a name and can be used as a value, often passed to higher-order functions.

Reference:

Functional Programming Quiz – MCQ Questions and Answers

Scroll to Top