Picture of Jason Butler
Assesment component
by Jason Butler - Tuesday, 1 April 2014, 4:44 PM
 

I'm new to adapt (1 day in at Spongeuk) and I have been creating a course with a simple 3 question assessment quiz component - I am coming up against an error.

If all the answers are correct - the feedback describes the score and maxscore variable correctly "3 out of 3" but if I select one wrong answer I get "0 out of 3" and 0% as the percent variable.

The ticks and crosses appear correctly on the options selected.

in the articles.json - "_scoreToPass" : 3

in the components.json -  "_questionWeight":3

Any ideas?

 

Any help much appreciated - Cheers

 

 

Picture of Jason Butler
Re: Assesment component
by Jason Butler - Wednesday, 2 April 2014, 8:18 AM
 

I'm using the match questions component.

To clarify the code: (I've swapped out the questions for dummy content)

components.json:

{
"_id":"c-590",
"_parentId":"b-130",
"_classes": "",
"_layout": "left",
"_type":"component",
"_component": "matching",
"_attempts": 1,
"_random": false,
"_questionWeight":3,
"title": "<h2>Check your understanding</h2>",
"body": "Select an option for each question, then click submit",
"buttons": {
"submit": "",
"reset": "",
"showCorrectAnswer": "",
"hideCorrectAnswer": ""
},
"feedback": {
"correct": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veritatis, suscipit, officiis, harum, vero quam natus fugiat maxime odio ad optio saepe magni illum nemo sit quasi obcaecati sed aut fuga?",
"incorrect": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veritatis, suscipit, officiis, harum, vero quam natus fugiat maxime odio ad optio saepe magni illum nemo sit quasi obcaecati sed aut fuga?</p>",
"partly": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veritatis, suscipit, officiis, harum, vero quam natus fugiat maxime odio ad optio saepe magni illum nemo sit quasi obcaecati sed aut fuga?"
},
"placeholder": "select an option",
"items": [
{
"text": "Question One",
"_score":1,
"options": [
{
"text": "wrong answer",
"correct": false
},
{
"text": "correct answer",
"correct": true
},
{
"text": "wrong answer",
"correct": false
}
]
},
{
"text": "Question Two",
"_score":1,
"options": [
{
"text": "correct answer.",
"correct": true
},
{
"text": "wrong answer",
"correct": false
}
]
},
{
"text": "Question Three",
"_score":1,
"options": [
{
"text": "wrong answer",
"correct": false
},
{
"text": "correct answer",
"correct": true
},
{
"text": "wrong answer",
"correct": false
}
]
}
]
}

 

articles.json:

{
"_id":"a-60",
"_parentId":"co-60",
"_type":"article",
"_classes":"",
"title":"",
"body":"",
"_assessment": {
"_isPercentageBased" : true,
"_scoreToPass" : 3,
"_completionMessage" : {
"title" : "You have finished the assessment",
"message": "You scored [SCORE] out of [MAXSCORE]. [FEEDBACK]"
},
"_bands": [
{
"_score": 0,
"feedback": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolore, aspernatur, ut modi quia laborum neque dolores nobis maxime impedit dolorum. Fuga mollitia iure nemo repellat assumenda illum praesentium laboriosam commodi."
},
{
"_score": 1,
"feedback": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolore, aspernatur, ut modi quia laborum neque dolores nobis maxime impedit dolorum. Fuga mollitia iure nemo repellat assumenda illum praesentium laboriosam commodi."
},
{
"_score": 2,
"feedback": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolore, aspernatur, ut modi quia laborum neque dolores nobis maxime impedit dolorum. Fuga mollitia iure nemo repellat assumenda illum praesentium laboriosam commodi."
},
{
"_score": 3,
"feedback": "<h2>Well done!</h2>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolore, aspernatur, ut modi quia laborum neque dolores nobis maxime impedit dolorum. Fuga mollitia iure nemo repellat assumenda illum praesentium laboriosam commodi."
}
]
}
}

 

Hopefully that will be obvious to one of you! 

Picture of Jason Butler
Re: Assesment component
by Jason Butler - Wednesday, 2 April 2014, 11:46 AM
 

SOLVED - apologies for posting.

The answer is simple in the end - I have one matching question component in the article and so the assessment component is only able to calculate the score based on one question - hence 0% or 100% as possible outcomes.

To ensure the result was as required I had to separate the matching component items into 3 separate matching components - which gives the correct feedback once the article is completed as the assessment is derived on a PER COMPONENT basis.

So a minor noob oversight - but we all learn by our mistakes right?