Answer:
A line is a simple geometric shape that extends in both the directions, but a line segment has two defined endpoints. Both the figures are also different from a ray, as a ray has only one endpoint and extend infinitely in one direction.
Step-by-step explanation: