The philosophy and architecture of ArsDigita Quizze are explained in the case studies chapter of Alex and Philip's Guide to Web Publishing.
This is free software, copyright ArsDigita and distributed under the GNU General Public License. Our reference implementation is operating right now at http://db.photo.net/dating/. Try it out. About 20,000 people did during the first two months.
Go ahead and grab the tar file.