Quiz - Text Entry with different marks

Quiz - Text Entry with different marks

by Tom Davies -
Number of replies: 4

Hello 

I have quite a complicated for a text entry - missing words style question. I will give an example below: 

Rephrase the following sentence using the word WHETHER

"Do you know my friend Gary?" Bob asked me. 

Bob asked me _________________ Gary. 

Now the complicated part, I would like to give this question a maximum grade of 2 where 1 mark is given for the word WHETHER just after the word "me" and another mark awarded for the words "I knew" in the correct position. The problem I have is that I have as possible answers "whether I knew" 2 marks. The possibility of 1 mark is more difficult because it depends on the positioning. Anybody have any ideas? 

Average of ratings: -
In reply to Tom Davies

Re: Quiz - Text Entry with different marks

by Matthias Giger -
Picture of Particularly helpful Moodlers
Use the Embedded answer (cloze) question type and write the following:

Bob asked me {2:SA:=whether I knew~%50%whether*~%50%*I knew} Gary.

The %50% assigns 50% of all points to the partially correct sentence.
The * catches all the characters before or after the correct partial answer.
Average of ratings: Useful (2)
In reply to Tom Davies

Re: Quiz - Text Entry with different marks

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Tom,

My REGEXP question type would be the perfect answer to your problem.

You could accept a number of variations for the correct answer(s) and also give meaningful feedback on errors.

For example, this simple (!) expression would yield 4 accepted correct answers:

Bob asked me (if|whether) I knew (his friend|) Gary\.
 
  • Bob asked me if I knew his friend Gary.
  • Bob asked me if I knew Gary.
  • Bob asked me whether I knew his friend Gary.
  • Bob asked me whether I knew Gary.

The plugin is here: Regular expression short answer

Average of ratings: Useful (1)