Let us take a example.let two roots be 2, -3.
sum of roots=-1,product=$-6$
Therefore, equation is $x^{2}+x-6$.
This equation eliminates options A,C,D.
Here a,b have same sign while c have different sign.
If roots are -2,3.
sum of roots=1,product of roots=$-6$.
Therefore, equation is $x^{2}-x-6$.
Here b,c have same sign while a has opposite sign.
Therefore option B is right answer.
OR
for the equation$ax^{2}+bx+c$$=0$,
Sum of roots =$-b/a$ and product of roots=$c/a$
Roots are of opposite sign$\Rightarrow$ product is negative and sum of roots is either negative or positive(see above example).
CASE-1:Sum of roots is -ve and product of roots is -ve
$\Rightarrow$ -b/a<0,c/a<0
$\Rightarrow$ b/a>0,c/a<0
if a is +ve, then b is +ve,c is -ve.
if a is -ve, then b is -ve,c is +ve.
Therefore, a,b has same sign while c has opposite sign.
CASE-2: Sum of roots is +ve and product of roots is -ve.
$\Rightarrow$ -b/a>0,c/a<0
$\Rightarrow$ b/a<0,c/a<0
if a is +ve, then b is -ve,c is -ve.
if a is -ve, then b is +ve,c is +ve.
Therefore, b,c has same sign while a has opposite sign.
option B is the answer.