And also which one should be used in such a situation:

you see that the ground is wet and you ask someone:
a) did it rain?
b) has it rained?
c) has it been raining?