You could first have a variable of type list of questions where you would make a ListAppend to add to it only the questions that have already been used. Then you would make a condition (with foreach) where you would check if the questions for the next exam are in the previous list - if so, skip them, allowing only the ones that would not have been used.