I'm not familiar with the Questionnaire activity, however I notice in the documentation Adding/editing a questionnaire that it mentions
If your Moodle course allows guests, they will only be allowed to respond to a questionnaire whose responses have been set to anonymous