Answer:
B. Dangling participle.
Step-by-step explanation:
A dangling participle is a participle that is intended to modify a noun that is not present or included in the sentence. In other words, we can say that a dangling participle is when a participle is used to modify a noun not present or mentioned in the sentence. Or we can say, a participle that wrongly modifies a noun in the sentence.
In the given sentence "blowing the whistle loudly, the driver on the road nearby was surprised by the train", the modifier or participle "blowing the whistle loudly" has no noun to modify. It is left alone in the sentence.
Thus, the correct answer is option B.