I'm working on online exam project. Which will have multi select, single select and fill in the blank for answer selection. I haven't worked on this kind of project before. So, Just need a tip on how can I make this kind of functionality.
Just add a field in the database record which states what kind of question it is and then in the controller you make different cases for the type of question.
@shaikh709 What have you tried so far? Can you share some code?
You'll require several entities including User, Question, QuestionType, Answer, Exam. You'll also of course need to store actual answers.
Having multiple question types will also increase the complexity. For example, select type questions can have a single correct answer, whereas a multi select will have multiple correct answers..
I have written a couple of these systems and there is a lo more to an exam type application than you think.
@Robstar I think if I use JSON way to store information in database. I guess it might help. Ill check the question type and format answer according to question type.
I don't know if that will work or not. I already have everything else setup like users and all I just need a logic.