Hidden test cases appearing in code dump

Hidden test cases appearing in code dump

por Padmanabhan Rajan -
Número de respuestas: 0

Hi all,

I recently did a quiz with a c_function question. One of the students managed to get full scores in programming question, but his code was just checking for the test cases (including hidden ones) and printing the output. I thought he had somehow hacked into the Moodle server. When I confronted him, he admitted that the his submission crashed in the CodeRunner window and it threw up a code-dump, including the main program with all the test cases. His was the only such submission in a class of 90. Is this a known vulnerability in CodeRunner?

I have asked him to try and reproduce the error.

A screenshot of the students code is attached. The quiz included a single CodeRunner programming question along with other regular Moodle-type questions (non programming.) The quiz was sequential and the questions were shuffled.

Thanks

Padman

IIT Mandi, India