Concept:The range is found by applying the function g(x) to every element in the domain set P.Explanation:The domain is P={x:x is a factor of 6}.So, P={1,2,3,6}.Given g(x)=x2+3x−5, evaluate it for each domain value.For x=1: g(1)=12+3(1)−5=1+3−5=−1.For x=2: g(2)=22+3(2)−5=4+6−5=5.For x=3: g(3)=32+3(3)−5=9+9−5=13.For x=6: g(6)=62+3(6)−5=36+18−5=49.Thus, the set of all output values is the range.Answer:Range={−1,5,13,49}.Correct option: D.