A function of "bounded variation" means that $sup \sum_{j=1}^{n} |f(x_j)-f(x_{j+1})|\leq M$. Intuitively, it means the function does not go above or below some constant $M$
If a function has bounded variation on $[a,b]$ then it can be written as a difference of two positive monotone functions.
for a) we clearly have $f:[a,b]\rightarrow \mathbb{R}$ with $f(x)=sin(x)$ is of bounded variation. Note that $sin(x)$ is of bounded variation everywhere on the real line, so in particular, we can choose any arbitrary interval $[a,b]$. They exist, I just am not seeing an obvious pair of monotone functions to show an example.
for b) if we consider $f:\mathbb{R}\rightarrow \mathbb{R}$, it is possible. We can define two monotone, periodic functions on $[a,b]$ with increasing amplitude, we can probably find an explicit one with some work.