Hi Ravi,
In 10.18.0 in the settings the Maia domain model generator is available and feeding it this question it will come up with the following:
Great! I've created a domain model for your online quiz application. Here's a summary of the entities and their relationships:
The model allows for:
For the logic of selecting 25 random questions, you'll need to implement this in your microflows. Here's a high-level approach:
When creating an Exam, retrieve all Questions.
Randomly select 25 questions from this set.
For each selected question, create an ExamQuestion associated with the Exam.To show the result at the end:
Count the number of correct StudentAnswers for the Exam.
Update the Exam's Score attribute with this count.
You can then display this score to the student after they complete the exam.
Let me know if you need any clarification or have any questions about the domain model!
Hope this will get you started to use both Mendix and the Maia domain model generator
Kind regards,
Jurre
Hi Ravi,
I have a video series about Quiz App, İt is in Turkish language but anyway it will help you. Because you can download app and you can find link in videos decription. After download app and you can customize however you want.
https://www.youtube.com/@MustafaKaraaaslan/videos