In which sentence is the word but used as a preposition?

A. Children should be seen but not heard.
B. John liked baseball but not football.
C. We would like to visit the Grand Canyon, but our vacation time is up.
D. None but the brave shall enter in.

I answered D, because the word but can serve as a preposition when it means except. Is my thinking correct?

Yes, you're right.

thanks

You're welcome.

Your thinking is almost correct but the answer is not D. The word "but" is used as a preposition in sentence C: "We would like to visit the Grand Canyon, but our vacation time is up."

When "but" is used as a preposition, it means "except" or "apart from." In sentence C, it is showing that everything is good for visiting the Grand Canyon except for the fact that the person's vacation time is up.