346) You are correct to state that the vectors are perpendicular if their dot product is 0. I think the equation you've written shows that.
345) Your expression looks good for this one as well.
Do you see the connection?
Remember that to find the angle between two vectors v and w we use
cos θ = (v (dot) w)/(||v|| ||w||)
The reason the vectors are perpendicular if the dot product is 0 is because cos-1 (0) = 90°.
If you look at your expression.
The left side is ||v|| ||w|| - the magnitude of v if v is the vector from (0, 0, 0) to (a, b, c) and the magnitude of w is w is the vector from (0, 0, 0) to (m, n, p).
The right side is the negative of the dot product of v and w. -am - bn - cp = -(am + bn +cp)