Identify the slope and y-intercept of the function y=-2x+ 1.
A. The slope is 1.
The y-intercept is (0,2).
B. The slope is 1.
The y-intercept is (0, -2).
C. The slope is 2.
The y-intercept is (0,1).
D. The slope is -2.
The y-intercept is (0,1).