The correct option is B Both the statements are true and Statement 2 is not the correct explanation of Statement 1.
If x is rational (pq,q≠0), then n!x∈Z when n→∞, so
f(x)=limm→∞(limn→∞cos2m(n!πx))=1
If x is irrational, then
cos2(n!πx)∈(0,1)⇒f(x)=0f(x)={1, if x is rational 0, if x is irrrational ∴h(x)=1∀x∈R
So, h(x) is a continuous function for all x∈R
Clearly it can be observed that f(x and g(x) are discontinuous functions, but statement 2 is not correct explanation for statement 1