Think of something that you wish Authorware could do but it doesn't?  Let the our good friends at Macromedia know via the wishlist.

Please let us know if you find any of the materials on this site inappropriate or offensive. Please include the url and why the material should be reviewed.

Comments and questions about the site are also welcome. Please no Authorware questions, use the AWARE list.

Back

B2010 - How do I make a multiple choice question when the user must click two responses?

by - Joseph Ganci


I am having trouble finding an example of a quiz interaction for a question wherein the user would pick two choices to get the correct answer. One possible answer would be 1 right / 1 wrong, another would be 2 wrong, and the third would be 2 right. Any examples or suggestions on where to look would be appreciated.

This example shows you how to set up a multiple choice question in which the user must click two answers to   be correct.  While there are more elegant solutions, this is one of the easiest to set up and explain.

The first Calculation icon, reset choices, contains a short script:

choices := [FALSE, FALSE, FALSE, FALSE]

This sets up a linear list called choices with four locations, each set to the value FALSE.  The Interaction icon contains four objects to be clicked on the screen.  Each of the four Calculation icons attached, numbered 1 through 4, contains a script line.  The first one contains the line

choices[1] := TRUE

All the others contains the same code, except that the number within the square brackets, which is the location in the choices list, changes to the name of the icon. 

Note that each of the four Calculation icons, which act as feedbacks when the user clicks the hot spots, are set to Continue branching. The Map icon at the end is set to activate its feedback on the condition that the Authorware variable ChoicesMatched , which indicates how many of the choices the user has clicked, becomes
2.  The Map icon contains the following:

The Calculation icon contains the following script:

-- in this case, we assume that the correct answers are 2 and 4
if choices[2] & choices[4] then path := 3
else if choices[2] | choices[4] then path := 2
else path := 1

The script checks the value of choices[2] and choices[4], the correct answers in this case. If both are TRUE, then the result of the & operation is TRUE, and the variable called path is set to 3.  If they both aren't true, then path is set to 2 only if one or the other of choices[2] and choices[4] is TRUE.  If neither one is TRUE, then path is set to 1.

The Decision icon is set to Calculated Path branching and the branch expression is simply path, meaning it will take the first path (both wrong) if path is 1, it will take the second path (one right, one wrong) if path is 2, and it will take the third path (both right) if path is 3.  Each of the Display icons contains a message posted to the screen appropriate to the Display icon's title.

finding an example of a quiz interaction for a question wherein the user would pick two choices to get the correct answer. One possible answer would be 1 right / 1 wrong, another would be 2 wrong, and the third would be 2 right. Any examples or suggestions on where to look would be appreciated.

This example shows you how to set up a multiple choice question in which the user must click two answers to   be correct.  While there are more elegant solutions, this is one of the easiest to set up and explain.

The first Calculation icon, reset choices, contains a short script:

choices := [FALSE, FALSE, FALSE, FALSE]

This sets up a linear list called choices with four locations, each set to the value FALSE.  The Interaction icon contains four objects to be clicked on the screen.  Each of the four Calculation icons attached, numbered 1 through 4, contains a script line.  The first one contains the line

choices[1] := TRUE

All the others contains the same code, except that the number within the square brackets, which is the location in the choices list, changes to the name of the icon. 

Note that each of the four Calculation icons, which act as feedbacks when the user clicks the hot spots, are set to Continue branching. The Map icon at the end is set to activate its feedback on the condition that the Authorware variable ChoicesMatched , which indicates how many of the choices the user has clicked, becomes
2.  The Map icon contains the following:

The Calculation icon contains the following script:

-- in this case, we assume that the correct answers are 2 and 4
if choices[2] & choices[4] then path := 3
else if choices[2] | choices[4] then path := 2
else path := 1

The script checks the value of choices[2] and choices[4], the correct answers in this case. If both are TRUE, then the result of the & operation is TRUE, and the variable called path is set to 3.  If they both aren't true, then path is set to 2 only if one or the other of choices[2] and choices[4] is TRUE.  If neither one is TRUE, then path is set to 1.

The Decision icon is set to Calculated Path branching and the branch expression is simply path, meaning it will take the first path (both wrong) if path is 1, it will take the second path (one right, one wrong) if path is 2, and it will take the third path (both right) if path is 3.  Each of the Display icons contains a message posted to the screen appropriate to the Display icon's title.

There are 0 reviews
Add your review
Back