A. Whether a word is a gerund or participle depends on the way it is used in a sentence. A gerund functions as a noun, while a participle functions as an adjective:
Running is good exercise. (gerund)
The running man stole the old lady's purse. (participle)