@leo I was having a look at the
automation question about the exclude questions used in previous years. I've got a sample file for probsoln that will do that called
sample-exclude.tex
but I'm not sure if it made its way onto CTAN. If you're interested I'll look it up.