Answer: -2
Explanation:
The slope of a line passing through two points (a,b) and (c,d) is given by :-

Given : The endpoints of line segment XY = (-1,3) and (1,-1)
Then , the slope of the line segment XY will be :-

Hence, the slope of the line segment XY = -2