program cloze test question

program cloze test question

by moon moodle -
Number of replies: 3

How do I set up a program fill-in-the-blank question where students only need to input the missing code in the blank space without having to enter the complete program? I’ve looked at the documentation, but I can’t understand it. Could you give me a specific example? For instance, I have the following C++ program where students just need to fill in the missing code.


{     }
using namespace std;
int main(){
    {     }“hello,world!";
   return 0;
}

In reply to moon moodle

Re: program cloze test question

by Richard Lobb -
I've just added a couple of question prototypes and matching example programs for a C-gapfiller and a Cpp-gapfiller question to the unsupported question types folder in the repo.

Let me know if they work for you. Please be aware they have had negligible testing.


In reply to Richard Lobb

Re: program cloze test question

by moon moodle -
I encountered the following error when importing this question prototype; what could be the reason?
erro
In reply to moon moodle

Re: program cloze test question

by moon moodle -
It's working properly now. Earlier, I downloaded the file as an HTML file instead of an XML file. It should have been an XML file. Thank you very much!