问题 选择题

若直线ax+2y=0平行直线x+y=1,则a=(  )

A.a=1

B.a=-1

C.a=2

D.a=-2

答案

因为直线x+y=1的斜率存在,要使两条直线平行,必有

a
1
=
2
1
0
1

解得 a=2

故选C.

单项选择题
单项选择题