How to create online quizz

0
Hi community, I am new to Mendix.  I am working on an online quiz use case.  Please help me with my requirement.  Students need to book an exam slot and take the exam. While taking an exam with 25 questions from a 100-question set, give some idea for the logic.  At the end, it needs to show the result of the students.    
asked
2 answers
2

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:

  • Student: Represents the student taking the exam.
  • ExamSlot: Represents available time slots for exams.
  • Exam: Represents an individual exam taken by a student.
  • Question: Represents questions in the question bank.
  • ExamQuestion: Represents questions selected for a specific exam.
  • StudentAnswer: Represents a student's answer to a question.

The model allows for:

  • Students to book exam slots
  • Randomly selecting 25 questions from the 100-question set
  • Recording student answers and exam results

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!

image.png

 

Hope this will get you started to use both Mendix and the Maia domain model generator

Kind regards,

Jurre

answered
0

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

answered