Which of the following is an example of a close-ended question?

A How was John F. Kennedy an asset to the country?
B Do you like classical music?
C What is your opinion about the presidential election?
D Why didn’t you come to the basketball game?