Which of the lines below has an undefined slope?

Answer:
The correct option is B.
Step-by-step explanation:
The slope of a line is calculated as
[tex]m=\frac{y_2-y_1}{x_2-x_1}[/tex]
The slope of line is undefined if there is no change in the values of x. It is possible only in the case of vertical line.
Graph B represents a vertical line. So the slope of the line in graph B is
[tex]m_B=\infty[/tex]
The slope of line B is undefined, therefore the correct option is B.