What is a soliloquy?

a. a speech given by one character in a play
b. the sequence of events in a play or literary work
c. the necessary background information for an audience to understand a play
d. a speech in which a character in a play expresses their inner thoughts

d. a speech in which a character in a play expresses their inner thoughts