The correct option is D limx→1g(x) exists but g(x) is not continuous at x=1.
Since, limx→1−g(x)=limx→1+g(x)=1 and g(1)=0,
so, g(x) is not continuous at x=1 but limx→1g(x) exists.
We have limx→1−f(x)=limh→0f(1−h)=limh→0[1−h]=0
and limx→1+f(x)=limh→0f(1+h)=limh→0[1+h]=1
So, limx→1f(x) does not exist and hence f(x) is not continuous at x=1
We have gof(x)=g(f(x))=g([x])=0,∀ x∈R
So, gof is continuous for all x.
We have fog(x)=f(g(x))={f(0), x∈Zf(x2), x∈R−Z
={0, x∈Z[x2], x∈R−Z
which is clearly not continuous for all x.