To calculate the slope between 2 points we use the following equation:
[tex]m=\frac{y_2-y_1}{x_2-x_1}[/tex]Replacing the points:
[tex]\begin{gathered} m=\frac{8-6}{4-4} \\ m=\frac{2}{0} \\ m\to\infty \end{gathered}[/tex]In this case, when we find an infinite slope, it means that it is a line parallel to the Y axis. All parallel lines have the same slope.
For the perpendicular case, the slope is equal to:
[tex]\begin{gathered} m_{\perp}=\frac{1}{m} \\ m_{\perp}=\frac{1}{\frac{2}{0}} \\ m_{\perp}=\frac{0}{2} \\ m_{\perp}=0 \end{gathered}[/tex]For the perpendicular case, the slope is zero and would equal one parallel to the X axis.