Answer:
1 -

2 -

Explanation:
The general form of a straight line is
, where m = slope and b = y-intercept.
Ques 1: We are given that the line passes through (0,2.5) and (4,2.5).
Then the slope of the line is given by,

Then, the y-intercept is given by,

That is, the equation of the line is

Since, 'Two parallel lines have equal slope'.
Then, the line parallel to
have slope 0 i.e.
.
As, the line passes through the point (3,-1) i.e. y= -1 for any value of x.
Then, the equation of line is

So, option A is correct.
Ques 2: We are given that the line passes through (-2,0) and (0,-1).
Then the slope of the line is given by,

Then, the y-intercept is given by,

That is, the equation of the line is

Since, 'The product of slopes of two perpendicular lines is -1'.
Then, we have,

The line perpendicular to
have slope 2.
As, the line passes through the point (-1,2) with slope 2.
The y-intercept is given by,

Thus, the equation of the line is

So, option A is correct.