A straight line and a plane will be perpendicular when the governing vector of the straight line is parallel to the normal vector of the plane. Since we know that two vectors are parallel if and only if they are linearly dependent, we will only have to verify if its components are proportional.
A straight line
Example
The straight line