Intermediate Compilers & Programming Language Theory
Q68 / 100

What does it mean for a programming language to have first-class functions?

Correct! Well done.

Incorrect.

The correct answer is A) Functions can be passed as arguments, returned from other functions, assigned to variables, and stored in data structures, just like any other value

A

Correct Answer

Functions can be passed as arguments, returned from other functions, assigned to variables, and stored in data structures, just like any other value

Explanation

Languages with first-class functions (JavaScript, Python, Haskell, Rust closures) treat functions as ordinary values, enabling higher-order functions such as map, filter, and reduce, and patterns like callbacks and combinators.

Progress
68/100