Scenario 4

In this scenario, an assessment consists of five questions that map to two objectives:

To master Objective 1, the learner must correctly answer questions one and two. To master Objective 2, the learner must correctly answer questions three through five. Upon completion of the assessment, the learners are able to view their results. The results could display as:

You did not master Objective 1: Answer general questions that an Individual Retirement Account (IRA) holder asks about Required Minimum Distribution (RMD).

You did master Objective 2: Answer questions that an Individual Retirement Account (IRA) holder asks about how to request a Required Minimum Distribution (RMD).

Complete the code to evaluate and display the appropriate result information:

var obj1Desc = GetValue( "cmi.objectives.0." );
var obj2Desc = GetValue( "cmi.objectives.1." );
var obj1Status = GetValue( "cmi..0.success_status" );
var obj2Status = GetValue( "cmi.objectives.1." );
if ( obj1Status == "failed" )
{
alert( "You did not master Objective 1: " + );
}
else if ( obj1Status == "passed" )
{
alert( "You did master Objective 1: " + obj1Desc );
}
if ( obj2Status == "failed" )
{
alert( "You did not master Objective 2: " + obj2Desc );
}
else if ( obj2Status == "passed" )
{
alert( "You did master Objective 2: " + obj2Desc );
}

Click after you complete the code.