I would like to build a web service, which can be used for teaching programming and setting up programming quizzes.
I have envisioned that at its simplest form, the end user would see a web page which contains one to n questions, and as many text boxes for writing the code for each question. Right next to each text box there should be a "run" button, which would execute the program and print output of the program to the web page.
The language should be safe in the sense, that the code must be run in some kind of a sandbox. And naturally simple syntax would be a good thing.
I welcome different views on how you would implement such a service.