This is described in a separate document, How to create questions in Moodle which you will find on this website.