logo

AQA A-Level Computer Science practice

Which statement about first-class objects is correct?

Try the question first, then check the answer and practise the same topic again.

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

Answer and explanation

Concise answer

First-class objects cannot be assigned to variables

Why this is correct

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.

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.

Related flashcards

No flashcards are published for this page yet.

Related practice questions