Place your survey in an assignment group [1], assign your survey a score [2], and complete the survey options [3].
Within surveys, you have all the regular quiz options, but you can also keep submissions anonymous [4]. This anonymous option applies to both graded and ungraded surveys and can be enabled and disabled before or after survey submissions.