If f:Z→Z is defined as f(n)=11n and g:Z→Z is defined

If f:Z→Z is defined as f(n)=11n and g:Z→Z is defined as g(n)=nmod7, then (g∘f)(4) is,

  1. A.

    4

  2. B.

    7

  3. C.

    44

  4. D.

    2

Attempted by 106 students.

Show answer & explanation

Correct answer: D

Solution: Evaluate the composition by computing f(4) first and then applying g to that result.

  • Step 1: Compute f(4) = 11 × 4 = 44.

  • Step 2: Compute g(44) = 44 mod 7 = 2, because 7 × 6 = 42 and the remainder is 2.

Therefore (g∘f)(4) = 2.

Explore the full course: Dsssb Tgt Computer Science Paper 2