For your exercise, it is certainly $\sin (2x)$. Like what the commenter mentioned above, your calculator/computer interprets the one without parentheses as $(\sin (2)) \cdot (\pi)$. But if this is what is wanted from you, it should've been written $x \sin 2$ instead, to avoid ambiguity.