Exam-style question
Try this first
Which of the following is a property of a first-class object or value?.
- A.It may be assigned to a variable
- B.It must be a character
- C.It can never appear in an expression
- D.It must be returned by every function call
Answer and explanation
Concise answer
It must be a character
Why this is correct
First-class objects or values may be assigned to variables. They may also appear in expressions, be assigned as arguments and be returned in function calls.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
