(a)
\Consider the function
.
Limit formula:
.
Where as
is an indeterminant form.
(b)
\Consider the piecewise function 
Here
.
Find
.
If limit exist then left and right hand limts equal to the limit value at that point.
\That is
.

.
Thus
doesnot exist.
(a)
.
(b) 