2. The function $y=\cos x(x \in[0, \pi])$ and the function $y=\arccos x(x \in[-1,1])$ are not $(\quad)$.
A. Decreasing function
B. Periodic function
C. Neither odd nor even function
D. Monotonic function
2. B

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.