Any Idea about how to stop fetching questions after once fetched

DO you have any idea. in online test. Suppose i took the test of Physics. Now how to stop fetching the same subject questions once i have taken the test of the subject. Question is fetched dynamically from the table.

If you’re presenting a random set of questions (for example, you have a database table of 1000 questions and want to present the student with a random selection of 80 questions), I’d retrieve the set of 80 questions and work through that list, rather than going back for a new one each time. So store the selection somewhere - presumably your students log in, so you can store the list temporarily against their user id, if it’s multiple choice you could store their answer against each question id so it can be reviewed afterwards.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.