To create test within a course , click on Edit Course Content -> + button -> Test.
Add questions and set configuration -> Save.
Please check your uploaded file extension.
Please Select a file.