I would like to import or create questions that have mathematical expressions (exponential, fractal, etc.) within the answer choices. Apparently there is no formatting for the answer choices or the ability to use choices like 24 or ½ or am I missing something? TIA
You may wish to look at the optional 3rd party AiM module or WebWork module. These allow fairly complex displays I think using TeX.
Do you mean something like this?
For what I know there is no "easy" way in Moodle. It would be great if some of the experts could add at least an option to import an image in the answers. So far what I have been doing is creating images with the math expressions, saving them in a folder among the Moodle files, and then typing the HTML image tag with the appropriate location within moodle where the image is found. For example:
As you see it is a lot of work and in Math, Physics or Chem questions this could be very time consuming. It would be extremely helpful if a php writer could include a feature that allows at least to browse and insert an image in the multiple choice answer box (which right now only accepts text). Any generous volunteer?
That works even in questions.
½ should be able to be used directly
For superscripts one can use HTML tags like:
x<sup>2</sup> makes a x2
x<sub>2</sub> makes a x2
Adminstration > Filters
The heaven and hell of Moodle is that there are so many choices! The first time you come in as administrator it is quite overwhelming, but just accepting the defaults works for the most part. (But algebra isn't default chosen)
There are tons of documentation on how to use Algebra syntax scattered in the Moodle Forums. Go for example to:
Moodle>>UsingMoodle>>Forums>> Mathematics Tools>>Documentation of Algebra Syntax
Moodle>>UsingMoodle>>Forums>> Mathematics Tools>>Examples of algebra syntax
There are also links on the postings to really neat documentation
Sorry, I forgot to give you also a great link that Jeff Forssell shows in one of his postings and that have served me quite a bit:
This link is not working.
Pl. update it.
Although this is not clearly documented, you can put image either in the choice or in the feedback. This give you a question like this one
a feedback like this
TO get this you first put your image in your question text
You put the editor in html mode
You copy the text like
<img src="http://184.108.40.206/moodle/file.php/16/SystmesPi/image002a.gif" alt="image002" border="0" />
</p>( this link was real at the time of writing but...)
either in the CHOICES or Feedback elements.
So this new question type already exists.
Actually the limit is one HTML editor in a page because of the complexity to put more than one and there seems to be problems when there is more than one HTML editor on a page but this could change with the new 1.8 interface and this could be implemented more completely(using pop-up windows ).
For your maths questions you could use the LateX for the questions and do similarly for the CHOICES also (but I have not tested it for CHOICES).
Well, in Lesson edit mode I frequently have as many as 12 HTML editors on the same page, and I have never had any problems. I don't understand why this facility is available to the Lesson module and has never been available to the Quiz module.
In fact, in Lesson edit mode only one HTML editor is enabled (Page Contents). If you really need more, you just tick the relevant box(es) and redisplay the page. I think the idea is to prevent problems happening due to too many editors open at the same time (on a slow machine maybe?).
Thank you for the detailed answer! I had not thought about inserting images in the feedback for the student; great!
What is not very intuitive for the user is what is the URL for the image (which resides in a Moodle folder) he/she wants to insert in the answers or in the feedback. It took me a while to find what was the actual path to the images I have stored in a Moodle folder. So I was wondering if it could be possible for some of the php experts in this forum to include a tool that allows the instructor to browse inside the Moodle files and select the image with a click, so the appropriate URL is grabbed by Moodle itself, instead of having the user 1) discover what the appropriate URL is and 2) type it without errors! in the text box.
When you insert an image using the html editor and searching an image in your course data, the link will be created correctly and you just have to copy the <img ....> html field.
Note that the link implied the file.php file which redirects to the dataroot.
You have access if you are logged correcly.
Your moodle course data is private.
As for Joseph, the recent decision of Tim was to allow only one HTML in a quizz having Essay question if I remember well.
And we could imagine was will be an editing multichoice question having three HTML editors for each of the 10 choices...
My name is Miguel .... from Portugal.(....personal data) my job right now is to add quizzes, training and other materials.
I read the instructions about how to put an image in Moodle Quizzes (Multiple Choice) you posted in moodle.org (http://moodle.org/mod/forum/discuss.php?d=58615). I tried that technique, copying the HTML image tag and pasting it into the answer textfield, but an error occurred: the answer disappeared; it wasn't processed and I couldn't continue: "This type of question requires at least 2 answers" (I had 4 answers with HTML tags). I copied the tags as:
Answer 1: <img alt="l" src="http://c.........../P01Q05img01.JPG" /><br />
Answer 2: <img alt="l" src="http://................/P01Q05img02.JPG" /><br />
Am I doing something wrong? Can this be from my Moodle (version 1.8)?
Finally and mostly, I would like to thank you for your help in moodle.org and I will appreciate your reply. : )
The best regards,
Here is my aswer
So Miguel I think you should use the forum to ask those questions so that it can be usefull to other people.
I try it on Moodle 1.8 STABLE and it works correctly
You can see for yourself at
loging as user : moodle pw:moodle
I had a similar issue with special characters used in programming not displaying properly in answer stems. I used this simple workaround. Within the editor window, use the html tools to create your A/B/C/D/etc stems. Then for your answer choices, refer to the letter in the question window.
Which of the following is not a logical condition resulting in a true or false result?
A. (x == y);
B. (x = y);
C. (x >= y && x <= z);
Then your stems can simply be:
That avoids putting special characters in the stem fields.
A hearty THANK YOU to everyone who responded! I now have the resources needed to solve my problem. The Moodle community proved once again that there are a lot of good and sincere folks willing to help! I hope as my knowledge increases I can some day return the favor.