logo

Question detail

Which of the following is a property of a first-class object or value?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Functional programming paradigm

Exam-style question

Try this first

Which of the following is a property of a first-class object or value?.

  1. A.It may be assigned to a variable
  2. B.It must be a character
  3. C.It can never appear in an expression
  4. D.It must be returned by every function call

Model answer

What a good answer should say

  • It may be assigned to a variable

Explanation

Why this works

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.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.