Asking questions: difference between ‘which’ and ‘what’

Both which and what are used to ask questions and might be used interchangeably. However, there’s a…