The correct option is D y=fx+g, f,g∈R, f≠0
y=fx+g is clearly a linear function and forms a straight line.
y=|x| is clearly a linear function and forms a straight line.
y=ax3+bx+c and y=px2+r are not an equation of straight line and are not a linear function.