Drag and Drop question tutorial: Difference between revisions
Dan Stowell (talk | contribs) No edit summary |
mNo edit summary |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 2: | Line 2: | ||
I want to make a drag and drop question | I want to make a drag and drop question | ||
for a beginning | for a beginning French class - to test the knowledge of the words pomme(apple), orange, and grenouille(frog). To do so, I will use a background image with these words, and images of an apple, orange, and frog. I create the images and upload them to my moodle course files. | ||
[[Image:Words.jpg]] | [[Image:Words.jpg]] | ||
Line 12: | Line 12: | ||
position of the drag and drop image during the quiz. | position of the drag and drop image during the quiz. | ||
[[Image:Editing_screen1.jpg]] | [[Image:Editing_screen1.jpg|thumb|300px|center]] | ||
(Note that the fields "Image: X, Y, Width, Height:", " Hotspot: X, Y, | (Note that the fields "Image: X, Y, Width, Height:", " Hotspot: X, Y, | ||
Width, Height :", and " Alternative hotspots :" can be ignored. These | Width, Height :", and " Alternative hotspots :" can be ignored. These | ||
Line 24: | Line 24: | ||
Initially, the images are underneath the background image: | Initially, the images are underneath the background image: | ||
[[Image:Editing_screen2-1.jpg]] | [[Image:Editing_screen2-1.jpg|thumb|300px|center]] | ||
I drag and drop the images to where they should be: | I drag and drop the images to where they should be: | ||
[[Image:Editing_screen2-2.jpg]] | [[Image:Editing_screen2-2.jpg|thumb|300px|center]] | ||
Now, I want to position the hotspots. When the student answers the | Now, I want to position the hotspots. When the student answers the | ||
question, if any part of the drag and drop image overlaps | question, if any part of the drag and drop image overlaps its hotspot, | ||
it will be considered correctly positioned. I click the button "Snap | it will be considered correctly positioned. I click the button "Snap | ||
hotspots to all images". The hotspots are the red boxes that appear: | hotspots to all images". The hotspots are the red boxes that appear: | ||
[[Image:Editing_screen2-3.jpg]] | [[Image:Editing_screen2-3.jpg|thumb|300px|center]] | ||
I'd like to position the hotspots so that they cover each word, but not | I'd like to position the hotspots so that they cover each word, but not | ||
Line 45: | Line 45: | ||
click on the button "Hide images". | click on the button "Hide images". | ||
[[Image:Editing_screen2-4.jpg]] | [[Image:Editing_screen2-4.jpg|thumb|300px|center]] | ||
Now I can see the background image without the drag and drop images getting in the way. | Now I can see the background image without the drag and drop images getting in the way. | ||
Line 53: | Line 53: | ||
it looks like this: | it looks like this: | ||
[[Image:Editing_screen2-5.jpg]] | [[Image:Editing_screen2-5.jpg|thumb|300px|center]] | ||
Satisfied, I click on the button "Save and continue". This finishes the | Satisfied, I click on the button "Save and continue". This finishes the | ||
Line 60: | Line 60: | ||
When added to a quiz, the question looks like this: | When added to a quiz, the question looks like this: | ||
[[Image:Quiz_view.jpg]] | [[Image:Quiz_view.jpg|thumb|300px|center]] | ||
[[Image:Quiz_view-2.jpg]] | [[Image:Quiz_view-2.jpg|thumb|300px|center]] | ||
==Advanced option: alternative hotspots== | |||
Brian Kings help text extracted from the quiz forum : | |||
if you want one of the drag'n'droppable images to be correct if dropped on more than one hotspot, then you can specify alternativehotspots. you do this by providing a comma-seperated list of the ids (that you see on the screen, i.e. 1-10) of the other drag'n'drop image(s) whose hotspot you want it to match. | |||
clear as mud? | |||
for example, if you have 3 drag'n'drop images, and you want the first and third to be marked correct if they are dropped on the hotspot of either the first or third drag'n'drop image, then you would put 3 in the in the "alternativehotspots" of the drag'n'drop image 1, and put 1 in the "alternativehotspots" of the drag-n-drop image 3. | |||
if you wanted the second drag'n'drop image to also match the other two hotspots, you would put 1,3 in "alternativehotspots". | |||
[[Category:Quiz]] | |||
[[Category:Teacher]] | |||
[[Category:Tutorial]] |
Latest revision as of 11:04, 24 February 2011
Tutorial: A simple example
I want to make a drag and drop question for a beginning French class - to test the knowledge of the words pomme(apple), orange, and grenouille(frog). To do so, I will use a background image with these words, and images of an apple, orange, and frog. I create the images and upload them to my moodle course files.
Then I edit a new drag and drop question. For this example, I've left the "Text" field empty. If some text is entered here, it will be shown under the initial position of the drag and drop image during the quiz.
(Note that the fields "Image: X, Y, Width, Height:", " Hotspot: X, Y, Width, Height :", and " Alternative hotspots :" can be ignored. These are for advanced usage - when you need to align images accurate to the pixel, or when you need to have more than one possible "correct" hotspot for an image. The x,y,width,height values will automatically be filled in when graphically positioning the images/hotspots in the second step.)
Then I click on "Position the hotspots" to proceed to the second step.
Initially, the images are underneath the background image:
I drag and drop the images to where they should be:
Now, I want to position the hotspots. When the student answers the question, if any part of the drag and drop image overlaps its hotspot, it will be considered correctly positioned. I click the button "Snap hotspots to all images". The hotspots are the red boxes that appear:
I'd like to position the hotspots so that they cover each word, but not any of the empty space around each word. With the images and the hotspots both visible, it's hard to see what I need to see - the words on the background image. It could also be a little difficult to reposition and resize the hotspots, because it is easy to click on the drag and drop image instead of the hotspot. To make life easier, I click on the button "Hide images".
Now I can see the background image without the drag and drop images getting in the way. By holding down the shift key as I click and drag on the lower-right side of the hotspots, I can resize the hotspots. Without the shift key pressed, I can position the hotspots by dragging them. When I'm done, it looks like this:
Satisfied, I click on the button "Save and continue". This finishes the editing of the question.
When added to a quiz, the question looks like this:
Advanced option: alternative hotspots
Brian Kings help text extracted from the quiz forum : if you want one of the drag'n'droppable images to be correct if dropped on more than one hotspot, then you can specify alternativehotspots. you do this by providing a comma-seperated list of the ids (that you see on the screen, i.e. 1-10) of the other drag'n'drop image(s) whose hotspot you want it to match.
clear as mud?
for example, if you have 3 drag'n'drop images, and you want the first and third to be marked correct if they are dropped on the hotspot of either the first or third drag'n'drop image, then you would put 3 in the in the "alternativehotspots" of the drag'n'drop image 1, and put 1 in the "alternativehotspots" of the drag-n-drop image 3.
if you wanted the second drag'n'drop image to also match the other two hotspots, you would put 1,3 in "alternativehotspots".