Which of the following is a feature of functional programming?

Which of the following is a feature of functional programming?

a) Mutable state
b) Inheritance
c) First-class functions
d) Imperative loops

Answer:

c) First-class functions

Explanation:

First-class functions are a key feature of functional programming, meaning functions can be treated like any other value and passed around as arguments or returned from other functions.

Reference:

Functional Programming Quiz – MCQ Questions and Answers

Scroll to Top