Scenario 2

Your Code

Assume that the three questions related to Objective 1 were answered correctly and set the success status for the objective correctly:
SetValue( "cmi.
.0.
", "
" );

Assume that the two questions related to Objective 2 were answered incorrectly and set the success status for the objective correctly:
SetValue( "cmi.
.1.
", "
" );

Code Example

Assume that the three questions related to Objective 1 were answered correctly and set the success status for the objective correctly:
SetValue( "cmi.objectives.0.success_status", "passed" );

Assume that the two questions related to Objective 2 were answered incorrectly and set the success status for the objective correctly:
SetValue( "cmi.objectives.1.success_status", "failed" );