Functional Programming Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a Function?

A

A function is a subroutine that carries out a set of instructions and returns a value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Functional Programming?

A

Functional programming is a paradigm based on the use of functions to determine variables, where functions use expressions similar to mathematical expressions to calculate the value of a variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is immutable?

A

that the function only changes the state or value of input data at the time the function is executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are side effects?

A

in procedural languages that are mutable and have the side effect that changing the state of a variable may impact on how the program is executed. Functional programs are immutable so do not suffer from this side effect.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is statelessness?

A

Statelessness, which means each function is calculated with no reliance on any data other than which was passed as function inputs; there is no dependence upon events that happened previously in a program’s execution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are high order functions?

A

Higher-order functions are functions that either take other functions as an input (or argument) or return a function as an output.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly