The general form of the equation of a line is:
y=mx+b
Where m is the slope of the line and b the intercept, which is the y-coordinate of the point where the line crosses the y-axis.
Since the line intersects the y-axis at the point (0,-1), then b = -1
We can calculate the slope of the line (m) by means of the formula:
Where (x1,y1) and (x2,y2) are two points of the line. we can take the points (0,-1) and (-1,1), then the slope of the line is:
Then m = -2
The equation that represents this line is option D
y= -2x - 1