Exam-style question
Try this first
What does it mean for a function to be a first-class object?.
- A.It can only be called from inside another function
- B.It can be used as an argument to another function and returned by a function call
- C.It must always be stored in a file before it can be used
- D.It can only process integer values
Model answer
What a good answer should say
- It can be used as an argument to another function and returned by a function call
Explanation
Why this works
In the stated context, a function is a first-class object when it can be passed as an argument to another function and can also be the result of a function call.
Common mistake
No common mistake is linked to this question yet.
