logo

Question detail

Which statement about first-class objects is correct?

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 statement about first-class objects is correct?.

  1. A.Only functions can be first-class objects
  2. B.First-class objects may appear in expressions
  3. C.First-class objects cannot be assigned to variables
  4. D.First-class objects must always be floating-point values

Model answer

What a good answer should say

  • First-class objects may appear in expressions

Explanation

Why this works

The specification states that first-class objects or values may appear in expressions. It also gives integers, floating-point values, characters and strings as examples in many languages.

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.