Concept:
• Sum of continuous functions is continuous.
• Absolute value of a continuous function is continuous.
• Greatest integer function \([x]\) has jump discontinuities at every integer.
Step 1: Examine each option.
\[
\begin{aligned}
|x|+|x+1|+|x-2| &\rightarrow \text{Continuous} \\
|\cos x| &\rightarrow \text{Continuous} \\
x^3+|x| &\rightarrow \text{Continuous} \\
[x] &\rightarrow \text{Discontinuous at integers}
\end{aligned}
\]
Step 2: Consider the greatest integer function.
At any integer \(n\),
\[\begin{aligned}
\lim_{x\to n^-}[x]
&=n-1
\\
\lim_{x\to n^+}[x]
&=n
\end{aligned}\]
Since the left-hand and right-hand limits are different,
\[
[x]
\]
is not continuous at integers.
\[\begin{aligned}
\boxed{f(x)=[x]}
\end{aligned}\]
Hence, option \(\mathbf{(D)}\) is correct.