The sentence with correct capitalization is:
B. Tom Hanks is a famous actor who has appeared in such films as Philadelphia, Forrest Gump, and Apollo 13.
In this sentence, "Tom Hanks" is properly capitalized as a name, "actor" is correctly in lowercase as it is not a title before a name, and the film titles "Philadelphia," "Forrest Gump," and "Apollo 13" are also capitalized correctly.