The correct answer is: B. To be frightened.

To have one's heart in one's boots is an idiom that means to be very frightened. It is thought to have originated in the 16th century, when people wore boots that were so tall that their hearts would literally be in their boots when they were frightened.

The other options are incorrect because they do not accurately describe the meaning of the idiom. Option A, to be deeply depressed, is not accurate because to have one's heart in one's boots is a sign of fear, not sadness. Option C, to get angry, is not accurate because to have one's heart in one's boots is a sign of fear, not anger. Option D, to keep a secret, is not accurate because to have one's heart in one's boots is a sign of fear, not secrecy.