In the following question:
I'm getting the answer as LHL=-infinity while RHL= infinity
The answer given to this question is D.
However as far as I know when a limit tends to infinity it does exist. I don't know if I'm wrong, could someone please help.
Indeed, I agree with you, by the usual definition we say that the two side limits exist and we have
since those are different we say that the limit at $x=1$ doesn't exist and then the function is discontinuos at $x=1$.