Hi to everyone!
I'm new as developer using Moodle, I would like to develop a plugin for my final project university. So I will use Moodle 3.6 at least
I have been researching about https://docs.moodle.org/dev/Question_types and https://docs.moodle.org/dev/Activity_modules
But I'm not sure what is better to use.
My goal is to develop a plugin which can be use by students by giving them random questions. I want to generate these questions automatically using my own code, my code will need some inputs and it will generate related outputs. The whole complexity of the code is transparent to the student, they will only see a test with questions.
The objective is to show questions in a random test, the student inserts the response (similar to a short-answer) and my plugin executes my code and determines if the response has been right or wrong.
To summarize I need a plugin to:
Generate questions automatically by giving inputs and using programming structures like switch or for to have related outputs.
Randomly the students are shown these questions who insert the response of each question and at the end of the test the students will know all rights and wrong answers.
So to reach my goal, anybody could recommend me if it's better to start by developing a new question-type or an activity module?
And also, anybody could recommend me if it's better to use php language or any other language like javaScript to my code part (I think I will need to use structures like switch, for, while...)
Thanks in advanced.
Andrea.