The correct notation for a line segment is usually the distance between the points on the line segment with a bar at the top.
The notation for a ray is with an arrow at the top of the distance between the points.
Hence, the correct notation for the line segment from N to M is given by;
Therefore, the correct answer is option A