What according to you will be the answer for: $$\lim_{x \to 0} \frac{\sin(1/x)}{\sin(1/x)}$$
My answer was $1$. The book says not defined and the argument is that both numerator and denominator are in $[-1,1]$, so we cannot determine what it exactly is.
My argument is, whatever value it takes, shouldn't it be the same in both numerator and denominator? Moreover, another example may be:
$$\lim_{x \to 0} \frac{1/x}{1/x}$$
I say $1$ again, because it is the same. But, it is not defined if we individually consider numerator and denominator! Still we have cancelled it in this case. Why can't I do it in case of sine function?
The limit does not exist, but not because "both numerator and denominator are in [-1,1], so we can not determine what it exactly is". The denominator is $0$ whenever $\frac{1}{x}$ is a multiple of $π$, so in any open interval containing $0$ there is a point at which the expression is not defined, and hence the limit does not exist. This has nothing to do with the oscillatory behaviour of the numerator and denominator.
In your other example, the limit is indeed $1$ because it is indeed defined and equal to $1$ in any open interval of $0$ less $0$ itself.