I am in need of a plugin for an online test

I am in need of a plugin that will allow someone to login to the site, take a test and if they pass it would let them print out a certificate. Is there a plugin that will do that?