The length of the survey depends on various factors ranging from the survey's topic to the respondents you are targeting. As said earlier there is no fixed formula to the number of questions that should be asked in a survey. A rough estimate states that the average number of questions asked in an online survey is 12. There is no reason of asking too many questions for gathering data when you can do so without bothering your respondents much.