Which : can be used with nouns to ask questions; generally used in case where there is a limited choice; used with noun in a relative clause.
What: can be used with nouns to ask a question; is used when the choice is bigger
Differences: which - with a noun in a relative clause
Both used as interrogative pronouns