The correct option is B (B)→(Q)
(A)
f(x)=((sgn x)sgn x)n ={[(1)1]n,x>0[(−1)−1]n,x<0 ={1,x>0−1,x<0
Hence, f(x) is an odd function.
(B)
f(x)=xex−1+x2+1f(−x)=−xe−x−1−x2+1 =xexex−1−x2+1 =xex−x+xex−1−x2+1 =x+xex−1−x2+1 =xex−1+x2+1 =f(x)
Hence, f(x) is an even function.