I am creating a question and answer project, more to consolidate my knowledge and acquire others. But in developing it I came up with an issue that I am thinking of which of the options would be best to create a model and consequently a table clean and easy to understand.
What I have is the following question: Which of the options (among which I thought would be good to do) is the best?
- I put in my question model an attribute called Options> with all the options that the question brings (a, b, c, d, e) and another one called Answer and would put the correct answer to the question; or
- Put four attributes ( Option1 , Option2 , Option3 , Option4 and Option5 ) and another called Answer with the correct answer.
In particular, I think the second option would be the best, so that by the time I answer the question, I can pull them out of the bank and put in radio buttons and make if
's to check which user responded and check whether that option is correct or not.
Does anyone have any other ideas that are better?