-
Notifications
You must be signed in to change notification settings - Fork 1
Multiple-choice questions generator, with management interface.
To create, update or delete a MCQ, you must have access to the management interface. You can access to the MCQ management by clicking on the left menu item "MCQ".
Now, you can see the MCQ management interface. It looks like this :
On this page, you can see all the MCQs, which can have several questions.
- To create a new MCQ, write a name into the input and click on the "Create" button.
- To remove a MCQ, click on the red cross.
- To see all the questions of a MCQ, click on "show questions".
By default, a MCQ contains 0 question, so it is not playable. To be playable, a MCQ must have 3 or more playable questions.
Let's see how MCQ's questions works.
When you click on "show questions", you must see something like :
There are all the questions of a MCQ. Like the MCQ, you can :
- Create a new question by writing a question on the input and click on the "Create" button.
- Remove a question by clicking on the red cross.
- See all the answers for this question if you click on the blue button.
By default, a question has no answers, so it is not playable. To be playable, a question must have 2 more answers.
Let's see how answers works.
By clicking on the blue button of a MCQ, you can see his answers. Here, there is a basic example :
To be playable, a question must have 2 or more answers, with one answer whitch is the response. You can create 5 answers max for a question .
For the answers, you can do 2 things :
- Create a new answer. To do that, you have to fill the input with the answer text and choose if the answer is correct or not. Then, click on the green button "add answer".
- Remove an answer. Still by clicking on the red cross.
It takes 3 tables to represents the questionnaries :
Seeders have been created in order to feed the database with 2 playable MCQs when the database is reset.
The management views are in /ressources/views/administration/mcq. There is one view for the MCQs, one for the questions of a MCQ, and one for the answers of a question.
There is only one controller for the MCQ, which is /app/Http/Controllers/MCQController.