Answer:
A wave that travels up and down is a transverse wave.
Step-by-step explanation:
This is because there are only two types of waves, a transverse wave and a longitudinal wave.
Longitudinal waves only travel from side to side carrying energy through a medium.
Transverse waves only travel up and down carrying energy through and sometimes not through a medium. Transverse waves can be found in space because it is not required for some of the transverse waves to travel through a medium (air, liquid etc).
For example, a sound wave (a longitudinal wave) cannot be heard in space but a light wave (a transverse wave) can be seen from millions of light years away in space.
Longitudinal waves have compressions and refractions (caused by the direction of energy transfer (side to side energy transfer)).
Transverse waves' directions of energy transfer are always perpendicular to the oscillation. However, longitudinal waves' directions of energy transfer are always parallel to the oscillation of the wave.
Hope this helped. Please feel free to comment below if you require further assistance from me! :)