Verified Answer :

Segments have 2, rays 1 (because it goes on forever in only one direction), and lines 0 (self-explanatory).

A segment has two endpoints and is a set length, thus it can be measured.

A ray has one endpoint, and is basically a combination of a line and a segment.

A line has no endpoints, because it extends forever in both directions.