Design approach for Multiple choice quiz app with Multiple right answers

Design approach for Multiple choice quiz app with Multiple right answers

Hi I'm trying to implement a django quiz app. But can't figure out the approach i should use when trying to create a question with multiple right answers. ie, users should be able to mark multiple choices as the right answers.

Hi I'm trying to implement a django quiz app. But can't figure out the approach i should use when trying to create a question with multiple right answers. ie, users should be able to mark multiple choices as the right answers.

This is what I've come up with so far.

class Question(models.Model):
    question = models.CharField(...)

class Choice(models.Model): question = models.ForeignKey("Question") choice = modelsCharField("Choice", max_length=50)

class Answer(models.Model): question = models.ForeignKey("Question") answers = models.ForeignKey("Choice")

Please guide me how to implement it the right way.

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Python Django Tutorial | Django Course

🔥Intellipaat Django course: https://intellipaat.com/python-django-training/ 👉This Python Django tutorial will help you learn what is django web development &...

Developing Restful APIs with Python, Django and Django Rest Framework

This article is a definitive guide for starters who want to develop projects with RESTful APIs using Python, Django and Django Rest Framework.