logo

AQA A-Level Computer Science practice

Which situation demonstrates a function being used as an argument?

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 situation demonstrates a function being used as an argument?.

  1. A.A function is supplied to another function as one of the values it receives
  2. B.A function is written as a comment
  3. C.A function is replaced by a character
  4. D.A function is used only to display a message

Answer and explanation

Concise answer

A function is written as a comment

Why this is correct

A first-class function can be assigned as an argument, meaning it can be supplied to another function as a value it receives.

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