I am sorry for my late response .
I think i have gained some experience over time on this topic.
For the second problem :
##f(x)=\frac{\sin^2 x}{x}##
Consider the extension of ##f##: $$g(x)= 0 , x=0$$ $$g(x)=\frac{\sin^2 x}{x} , x\in(0,\pi]$$
Since ##g(x)## is continuous on ##[0,\pi]## this implies ##g## is uniformly continuous on ##[0,\pi]## this implies ##f## is uniformly continuous on ##(0,\pi]##
For the third problem :
##f(x)=\frac{1}{x-3}##
in ##(0,3)##:
Consider ##x_n=3-\frac{1}{n}## and ##y_n=3-\frac{1}{n+1}## such that ##\lim |x_n-y_n|=0## but $$\lim |f(x_n)-f(y_n)|=|n-(n+1)|=1\neq 0$$
As we know that if there exists two sequences ##x_n## and ##y_n## in a given ##S## such that ##\lim |x_n-y_n|= 0## and ##\lim|f(x_n)-f(y_n)|\neq 0## then ##f## is NOT unifomrly continuous on ##S##
Hence , ##f## is NOT uniformly continuous here .
in ##(4,\infty)##:
this means ##\frac{1}{x-3}\in(0,1)##:
Choose ##\delta=\epsilon##
$$|\frac{1}{x-3}-\frac{1}{y-3}|=\frac{|x-y|}{|x-3||y-3|}<|x-y|<\epsilon$$
Hence , ##f## is uniformly continuous in ##(4,\infty)##
in ##(3,\infty)##:
Consider ##x_n=3+\frac{1}{n}## and ##y_n=3+\frac{1}{n+1}##
$$\lim |x_n-y_n|=0$$
$$\lim|f(x_n)-f(y_n)|=|n-(n+1)|=1\neq 0$$
Hence , ##f## is NOT uniformly continuous in ##(3,\infty)##