logo

AQA A-Level Computer Science practice

Using f(x) = x + 2 and g(y) = y^3, what is the value of (g ○ f)(1)?

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

Using f(x) = x + 2 and g(y) = y^3, what is the value of (g ○ f)(1)?.

  1. A.3
  2. B.9
  3. C.27
  4. D.81

Answer and explanation

Concise answer

27

Why this is correct

f(1) = 1 + 2 = 3. Applying g to this result gives g(3) = 3^3 = 27.

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