Scenario 1

In this scenario, the Sharable Content Object (SCO) should be considered complete if all questions are answered by the learner. Mastery of the questions is not required as defined in the project requirements.

During an assessment, the learner only answered six of the ten questions asked. The SCO is not considered complete—the completion requirement is all questions in the assessment must be answered. Complete the code to determine the completion status based on the project requirements:

function determineCompletion()
{
var completionThreshold = GetValue( "cmi." );
if ( numberOfQuestionsAnswered >= completionThreshold )
{
SetValue( "cmi.completion_status", "" );
}
else
{
SetValue( "cmi.", "incomplete" );
}
}

Click after you complete this exercise.