If g is periodic. Then
fog will always be periodic.
fog need not be periodic
gof will always be periodic
The period of g is is same as gof
Since g is periodic g(x+T)=g(x)
now fog(x+T)=f[g(x+T)]
=f(g(x))
=fog(x)