If I can add a very important gmat point to this:
I was having a problem with this problem. I guess D should have worked, because both point to a specific situation in which we can know about the slope. But what I didn't like was that the two statements seemed to point to two different lines.
In the second statment, we see that the line L must be a straight, horizontal line, with slope 0. That's fine, and difinitive enought. But in statement number one, we see that the line must have two different points at two different locations. We get a positive slope, so we can answer the question, but it's not 0, which it was in number 2.
I was about to comment that this couldn't be a real GMAT question, because the two statments always have to speak about the same answer. And here is my point: you will never get D in a way that the two statements both work but both point to a different answer.
If this happened on the test, I would have been forced to think about it again. And then I realized that q could be 1, which would derail statement 1 as enough, but it would then allow the line L to have a slope of zero.
So remember that. If they don't match up, then you're missing something.