logo

Question detail

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

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

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

Model answer

What a good answer should say

  • 27

Explanation

Why this works

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

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.