Correct option
Explanation :
The function f(x) = tan x is not defined at x = pi/2, so f(x) is not continuous on (0, pi).
Since, g(x) = x sin(1/x) is continuous on (0, pi) and the integral function of a continuous function is continuous,
is continuous on (0, pi)
f(x) is continuous at all other points.