Any Idea about how to stop fetching questions after once fetched

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