Test type Text input
Choose New test and then choose type Text input:
In this type you can input question and possible correct answers. Student then types the answer on the keyboard:
Note: You can provide several correct answers. Since the student is typing the answer, he/she might not use precisely the same formulation you expects. In the example above student can write 2 or two. Both answers are accepted.