Step 1: Apply continuity condition.
For continuity at \( x = 2 \) and \( x = 4 \), the function \( f(x) \) should not have any breaks at these points. By solving for \( a \) and \( b \), we find \( a = 0 \) and \( b = 3 \).
Thus, the correct answer is (2).