Answer: A line parallel to the y axis has no defined slope, and a line parallel to the x axis has a slope of zero.
Explanation:
The slope of a line is given by :-

Let
be a line that is parallel to x axis.
Here, change in y = 0
Then slope of line
wil be :-

Let
be a line that is parallel to y axis.
Here, change in x = 0
Then slope of line
wil be :-
= not defined
Hence, A line parallel to the y axis has no defined slope, and a line parallel to the x axis has a slope of zero.