The function \( f(x) = |x| + |x - 1| \) consists of absolute value functions.
- For \( x \geq 1 \), \( f(x) = x + (x - 1) = 2x - 1 \), which is continuous and differentiable.
- For \( 0 \leq x<1 \), \( f(x) = x + (1 - x) = 1 \), which is continuous but not differentiable at \( x = 0 \).
Thus, \( f(x) \) is continuous but not differentiable at both \( x = 0 \) and \( x = 1 \).