A general applet question type

A general applet question type

by Jean-Michel Védrine -
Number of replies: 5

Tim,
I was more and more thinking or merging the jme questiontype and Dragmath question type.
After all, both are small modifications of shortanswer and the only diffrence is the small part of the code that deal with the applet (both the code needed to display it and the name of the string we retreive from it).
But searching the forum I found a post where you said :
Create a whole lot of new question types. This includes

several variants of drag-and-drop;
a question type that can grade answers of up to a sentence length;
a variant of shortanswer/numerical qtype where students can easily enter superscripts and subscripts;
a question type that allows you to embed applets like the Java Molecular Editor or GeoGebra, the have what the student did graded by Moodle;
possibly a manually graded question type where the students can recored an audio clip, instead of writing an essay.

And another one :

Those are the ones that are definite. We have a few more ideas that may be a bit trickier to implement:

Essay questions with attachments.
Manually graded questions, where students record some audio (using a Java applet) rather than typing into the HTML editor.
A Java Molecular Editor question type that uses the pmatch algorithm, and possibly some other rules, to grade the result. (An example of an 'other rule' would be feeback based on whether the students had too many or too few carbon atoms in their molecule.)

Of course this open me quite a new perspective.
Looking a the pmatch question type in your repro I think that maybe it would be better to start from this one than from shortanswer (or even better to offer the choice between several methods : shortanswer, pmatch, regexp, ... and even better to allow for some possibility of extending it with new methods)

Also as a math teacher the goal to make a geogebra question type is very appealing to me

Displaying the applet is not difficult, of course we need to allow some customization (like load a .ggb file, ...)
We should also look at what geogebra method we want to grade
of course getDefinitionString is an obvious candidate but others are also interesting : getXcoord, getYcoord, getValue or getValueString, getCommandString, getObjectType
Also here allowing some choice would be better. We also need that the question author can input the name of the geogebra object he want to test somewhere.

But trying to do some sort of "swiss knife" do it all applet question type is maybe not the good solution. The real challenge is not to make a wonderfull question from the programmer point of view but a question simple enought to be widerly used. Maybe improved and separate jme, DragMath, Geogebra questions types would be better (I have some doubt that the same people want to use jme and Geogebra questions , but maybe I am wrong)

Myabe this is a good occupation for my Summer. Maybe also somebody is already working on this or maybe it's already done ?
If it is not already written, I really don't know how to begin.
Maybe by writting a something in the docs and allowing other to comment ?


It's in fact the first time that I plan to do anything other than maintaining existing pieces of code in Moodle since I wrote the responses quiz report many many years ago ! An Moodle have gone a long way since then !

Average of ratings: -
In reply to Jean-Michel Védrine

Re: A general applet question type

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The things I wrote that you quote above are a bit out of date. We ended up deciding not to develop the generic applet question type, becuase after thinking about it some more, that project ended up using OpenMark. The JME + pmatch quetsion type is still planned.

 

I think you are correct that there are arguments both for a generic applet question type, and also for specific quetsion types targetted at specific applets.

With Geogebra, there is so much potential there that I think a separate applet that lets teachers do as much as possible with the facilities available is probably the better options.

Anyway, it sounds like a good project, and I look forwards to seeing what you produce.

In reply to Tim Hunt

Re: A general applet question type

by Jean-Michel Védrine -

So, let it start !

I will write a RFC about my current ideas of a Geogebra qtype in Moodle Docs (but I need first to read Guidelines for contributors and even MediaWiki CheatSheet because this is my first submission blushbig grin) and invite math teachers and others to comment.

There is certainly a balance between the complexity of possible questions and the complexity of questions authoring to be found.

The goal is certainly not to write a question type that permit wonderfull things but that only a few minory of authors can use.

I will give in my text all the references that I have found searching the web about interactive questions involving geogebra or something similar.

In reply to Jean-Michel Védrine

Re: A general applet question type

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Another useful tip is that if you want to mock-up user-interfaces, then create an issue in the CONTRIB area of the tracker. Then you can use the Add/edit UI mockup option there, which is a nice tool.

In reply to Jean-Michel Védrine

Re: A general applet question type

by Cynthia King -

Is there updated information on this same issue?????  In particular, allowing students to enter sub/superscripts as part of a short answer response in a quiz.