Step 1: Understanding the Concept
A function is continuous at \(x=4\) if left limit = right limit = \(f(4)\).
Step 2: Left limit
For \(x\lt 4\), \(|x-4|=-(x-4)\), so \(\dfrac{x-4}{|x-4|}=-1\). Left limit \(=-1+a\).
Step 3: Right limit
For \(x>4\), \(\dfrac{x-4}{|x-4|}=1\). Right limit \(=1+b\).
Step 4: Equate with \(f(4)=a+b\)
\(-1+a=a+b\Rightarrow b=-1\).
\(1+b=a+b\Rightarrow a=1\).
So \(a=1,\ b=-1\), option (D).
Final Answer:
Continuity gives \(a=1\) and \(b=-1\).
\[ \boxed{\text{(D) }a=1,b=-1} \]