|Creating advanced tests with SuperMemo|
Creating multiple choice tests, drag&match tests, etc.
Apart from standard question-answer items, you can also create a variety of other tests such as:
Multiple choice test
To create a multiple choice test do the following:
You can also quickly create multiple choice tests by using the Multiple Choice template (press Ctrl+Shift+M and choose Multiple Choice to apply the template). Use Ctrl+T to switch between components while editing.
To create a spelling test, use a predefined template Spelling or simply place a Spell component in the element window and fill it out with the correct spelling (or with spelling variants separated by a slash). Press Esc to move to the presentation mode, and test the spelling by typing in the text in the spelling field and pressing Enter.
You can use more than one correct answer in a spelling test. For this purpose, simply separate all correct variants with a slash. Please remember that SuperMemo will accept the first match from the left and that it is important to consider that in determining the optimum sequence of variants.
To create a pronunciation test, use a predefined template Pronunciation, or place a Sound component in the element window and check the Sound : Panel : Recorder option on the component menu. Link the correct pronunciation MP3 or WAV file by using Import file or Links : Registry member on the same menu. Your pronunciation test is ready. The user can now record himself by pressing the microphone button and play his own or the correct pronunciation by using blue and green play buttons respectively. Finally, he can erase his recording by pressing the crossed-out button. All user recording are kept in TEMP subfolder of the collection folder and can only be deleted with the recorder crossed-out button. To clean all recordings, go to the TEMP folder and delete all WAV files
Creating Drag&Match and Point&Click exercises is more difficult and requires using scripts and the hit-area editor.
An element used for the Point&Click test must contain
an image component. The user is supposed to click the right place in the picture. This
test may be used, for example, to click the described organ on an anatomical cross-section
image. Another example is pointing to the recognized picture in a word recognition test.
Here, the question can be a recording of the recognized word, and the test will require
clicking the pictorial representation of the word.
To create Point&Click test, place a script component in the element (make sure it is the first playable component, e.g. by placing the script before placing all other components).
To make sure that the script is run as you enter the element, check AutoPlay on element menu. The script must contain the HITTEST command that will evoke Point&Click test, and all other components of the test if necessary (e.g. playing the question).
In the example below, the script plays the component with the question (component no 3) and calls the HITTEST command to execute the test. HITTEST says that the image component used in the test has the number 4, and that the coordinates of the correct selection area are [(387,10)(444,237)(546,229)(536,4)]
Note that these coordinates can be determined by means of Edit Hit-Area on the image component menu (see below).
It is worth remembering that the numbers of components on a page can be displayed with the 148 button on the Edit tab in the element window. Alternatively, Component order on element menu can be chosen for the same purpose.
Here is the script:
HITTEST 4 [(387,10)(444,237)(546,229)(536,4)]
Commands WAITGRADE and GOTO 2 make sure that after the test (i.e. after the grade is given to the user), the script goes back to line 2 and makes it possible to resume the Point&Click test.
Single Drag&Match test
This is a test for matching text components with hot spots in a single image components. The user is supposed to drag the text components and drop them at appropriate places in the image component. Single Drag&Match is implemented with a DRAGMATCH script command.
Let us imagine an exercise in which the users is to drag text components numbered 5, 6, 7 and 8 to appropriate hot spots on the image component number 2. Let us now assume that the hotspot for dragging the text number 5 is delimited by a rectangle having the following coordinates: (123,315,264,357). By analogy, components 6, 7 and 8 have also their own hot spot rectangle coordinates. The following script might do what is needed in this exercise:
DRAGMATCH 2 [5,6,7,8] [(123,315,264,357)(34,37,64,77)(43,37,58,177)(21,25,53,37)]
In the above script, DRAGTEXTMODE makes sure that texts are transparently displayed on the image upon dropping. The SHOW commands will redisplay all text components after executing GOTO 2 (dragging will make the components invisible). DRAGMATCH will define the appropriate relationships between text components and hot spot rectangles in the image component number 2. WAITGRADE will suspend the execution of the script until all texts are dragged into appropriate places or until the first mistake is made by the user. Finally, GOTO 2 will allow repeated execution of the exercise until satisfactory performance.
To simplify determining the correct rectangle coordinates, you can use the command Edit Hit-Area on the image component menu. This command is described below.
Multiple Drag&Match test
This is a test for matching text components with a number of image components. The users is supposed to drag the text components to appropriate image components. Multiple Drag&Match is also implemented with a DRAGMATCH script command. This time its syntax differs slightly. There is no image argument. Instead, a list of images is used to match a list of text components.
Let us imagine an exercise in which the user is supposed to drag text components numbered 2, 3, 4 and 5 to image components numbered 6, 8, 7, and 9. Those two lists of components will form the two arguments of the multiple DRAGMATCH script command. Again DRAGTEXTMODE determines if the texts erase the background or are displayed transparently:
DRAGMATCH [2,3,4,5] [6,8,7,9]
The behavior of the above script is analogous to the behavior of the script described in the previous section devoted to single DRAGMATCH command.
Hit Area Editor
Hit area editor is used to easily determine the coordinates of image hot spots for HITTEST script command and for single DRAGMATCH script command. Currently, the editor supports only BMP file format (i.e. you cannot use the editor with JPG, GIF or PNG images). If you are concerned with the space used up by BMP files, create the HITTEST script first and compress the image later. Images pasted from the clipboard are always compressed.
To use Hit Area Editor follow the steps listed below:
See also: FAQ: Collection authoring