Examples of question types:
Single answer with multiple choices (think of a button)
Multiple choice of multiple response (think checkbox)
Matching (there are now many permutations of possible choices)
I want to keep them in a database structure that can be used for these and many other types of questions in the future, so I'm trying to come up with a way to expand it ...
Now I have (your recommendation should not be limited to this):
- Table of questions
- Answer Table
- ChosenAnswers table
- User table
One question can have many answers. One pair of users / questions may have many ChosenAnswers.
However, I can't do this job well with Matching, as far as I can tell, and I'm also not 100% sure that it will work easily for a multi-user answer, which easily means the least amount of logic needed to calculate the total score, etc. d.
Can anyone think of a design that would allow me to use all three of these types of quiz questions, as well as add future ones? I need inspiration, a paradigm shift, if you ...
An example of future types of questions might be "put this list of things in the correct sequential order" ... etc.
There must be a way, no matter how difficult it may seem, to take into account all these different possible types of questions, although I still allow me to use a fairly simple way to calculate the total score for the quiz for reporting purposes, and therefore
Please let me know in the comments here if there are any details that I am missing, but it might be best to assume that I didnโt even consider the details that you think about, because I asked everything that I have a question already, but I will add clarity as I request it.
database-design
Bigomega
source share