Which kind of sentence is this?

Whose pink hat is on the floor

A.
declarative

B.
interrogative

C.
exclamatory

D.
imperative