Question Authors' Forum

Pascal

 
Picture of Alexander Lobachev
Pascal
by Alexander Lobachev - Friday, 29 April 2016, 5:29 PM
 

Hi!

Unfortunately, at the moment, CodeRunner does not support the Pascal language.

Are there any plans to add support for this language?

Picture of Richard Lobb
Re: Pascal
by Richard Lobb - Friday, 29 April 2016, 10:51 PM
 

Well, actually Pascal is present in the Jobe standbox so you can use it in CodeRunner questions already. The only thing that's missing is some sample Pascal question types. But those are easy enough to write, if you know what sort of questions you want to ask. The two simplest question types would probably be:

  1. A Pascal "Write a program" question. This would just run the student's code with any supplied standard input or other files. Any of the existing "Write a program" questions (e.g. the C one) will work fine in Pascal if you just change the language to 'pascal'.
  2. A Pascal "Write a procedure/function question". The template for this will consist of the student's code followed by the test code wrapped in begin ... end. 
I attach an XML export of these two question types. If you login in as an administrator and import them into the question bank you should be able to write simple questions. Here's a trivial example:

Screen dump of simple Pascal question

Picture of Alexander Lobachev
Re: Pascal
by Alexander Lobachev - Saturday, 30 April 2016, 2:50 PM
 

Thanks for the quick response.

This is exactly what I did not have to be completely happy.