The correct option is B exactly one value of p
If two lines are perpendicular to a common line then they are mutually parallel in 2D.
Hence
p(p2+1)x−y+q=0 is parallel to (p2+1)2x+(p2+1)y+2q=0
Hence, slopes are equal
p(p2+1)=−1(p2+1)2p2+1
Thus
p(p2+1)(p2+1)2=−1p2+1
pp2+1=−1p2+1
Hence
p=−1
Thus, there exists exactly one value of p.