What Is the Difference Between a Survey and a Questionnaire?

The main difference between a survey and a questionnaire is that a questionnaire is a set of written questions and surveys are deeper, which collect detailed data.