Which of the following is a key feature of functional programming?

Which of the following is a key feature of functional programming?

a) Object inheritance
b) Mutable state
c) Higher-order functions
d) Imperative loops

Answer:

c) Higher-order functions

Explanation:

Higher-order functions are functions that take other functions as arguments or return them as results, which is a fundamental feature of functional programming.

Reference:

Functional Programming Quiz – MCQ Questions and Answers

Scroll to Top