The correct option is D (0,am)
The equation of given line is
y=mx+am....(i)
The equation of line perpendicular to Eq. (i) is
my+x+λ=0....(ii)
The line passes through (a,0).
∴0+a+λ=0
⇒λ=−a
On putting this value of λ in Eq. (ii)
my+x−a=0....(iii)
On solving Eqs. (i) and (iii), we get
x=0 and y=am
∴ Coordinates of the foot of perpendicular are (0,am).