Answer:
Option 2 is correct.
Explanation:
We will evaluate the given functions as:
(fog)(x)=f(g(x))
Case1:


Which is not a function because it will not give different values of y for different values of x.
Case2:


This will give different values of y for different values of x
Hence, Option 2 is correct.