Building from everybody's answer (and adding mine to it), Here it goes:
Just run a local webserver to host the Exam, and isolate it from the internet.
Make a Ajax based interface for the Exam (so that it uses JavaScript at all times to have the exam).
Using a custom build Web-browser disallowing change of any settings and no debugger tools (Maybe built in Visual Basic).