Scenario 2

In this scenario, the SCO should be considered complete if all of the questions are answered and a score of 60% is achieved.

During the assessment, the learner completes all the questions, but only gets a score of 30% on the assessment. This does not meet the completion requirement, so the SCO will be marked incomplete. Complete the code to determine the completion status based on the project requirements:

function determineCompletion( numQuestionsAnswered )
{
var completionThreshold = GetValue( "cmi." );
var scaledScore = GetValue( "cmi.score.scaled" );
if ( ( numQuestionsAnswered >= completionThreshold ) && ( scaledScore >= 0.6 ) )
{
SetValue( "cmi.completion_status", "" );
}
else
{
SetValue( "cmi.", "incomplete" );
}
}

Click after you complete this exercise.