Step 1: Understanding the Concept
The limit is finite only if the terms containing \(x\) cancel out. So first simplify the rational expression by division.
Step 2: Simplify the Fraction
\(\dfrac{x^2+x+1}{x+1}=x+\dfrac{1}{x+1}\)
So the expression becomes \((1-a)x-b+\dfrac{1}{x+1}\).
Step 3: Apply the Limit
As \(x\rightarrow\infty\), \(\dfrac{1}{x+1}\rightarrow 0\). For a finite limit we need \(1-a=0\), so \(a=1\).
Then the limit equals \(-b=4\), so \(b=-4\).
Step 4: Compare the options
The pair \(a=1,\ b=-4\) matches option (B).
Final Answer:
The values are a = 1 and b = -4.
\[ \boxed{\text{(B) }\text{a = 1, b = -4}} \]