Answer:
B only
Explanation:
well to solve this question we can consider factor theorem which states that if a Polynomial f(x) is divided by a monomial x-a then x-a is a factor of f(x) if and only if f(a)=0
and to figure "a " we can consider the following equation:

substitute the given value of a:

therefore,

option-1:
plugin the value of x to the function A(x):

simplify which yields:

since A(2)≠0 x-2 is not a factor of A(x)
option-2:
similarly substitute the value of x to the function B(x) which yields:

simplify:

so, B(2)=0 Hence x-2 is a factor of x³-x-6
option-3:
substitute the value of x to the function C(x)

simplify:

as C(2)≠0 x-2 is not a factor of C(x)
option-4:
likewise plugin the value of x to the function D(x):

simplify and that yields:

therefore,D(2)≠0 hence,x-2 isn't a factor of D(-2)