A line that is parallel to the y-axis is a vertical line. Vertical lines have the form \( x = c \), where \( c \) is a constant.
Among the equations provided, the one that represents a line parallel to the y-axis is:
D. \( x = 4 \)
The other options represent relationships that are not vertical lines.