IMO Alice seems rude and even manipulative, first asking a question, then lecturing the person who answees the question in a perfectly valid way.
The normal thing to do in such a case (where I grew up and where I live now) would be to accept the answer as it 1. Answers the question at hand. 2. Is a perfect non-offensive interpretation of the intent of the question.
> Alice: "Do you know whether Carol will come to the party?"
Bob: Yes, I know. (or No, I don't know).
Awkward silence. What a strange way to conduct a conversation.
Because Alice wanted to find out whether Bob and Carol know each other well enough that Bob knows whether Carol will come or not.
Alice wanted to know if BOB had built a social graph of people attending the party.
BTW, your comment was pretty funny either way.
Bob programs in Python.
Alice: "Do you know whether Carol will come to the party?"
Bob: "She will come, but somewhat later. I think she will be there in half an hour."
Alice: "I am not interested in whether she will come or not. If I wanted to know that information, I would simply have asked you whether she will come and if you did not know, you would simply have answered 'I don't know'. But this is not the question that I asked. I just wanted to know whether you have the knowledge whether she will come or not and that is why i formulated the question exactly this way and not differently."