Single Question:
Code:
var activity = [
'<p> Description in HTML <p>',
'<p><b>1.</b> Imagine that you are chatting with a group of female students and trying to attract them into your CS class, which role model (One of your former students) do you think is the best to connect with them?</p>',
{ questionType: 'multiple choice',
choices: [['A male average student (or average GPA)?', false, 'Please try again, reminder 1'],
['A female average student', false, 'Please try again, reminder 2'],
['A male top student', false, 'Please try again, reminder 3'],
['A female top student', false, 'Please try again, reminder 4'],
['Pick one from 2 or 4 with similar background to those students', true, 'Correct! ']]},
];
Multiple Single Question Group:
Code:
var activity = [
{questionType: 'multiple choice group',
questionsList: [
{questionHTML: '<b>1.</b> We shouldn’t worry about less girls than boys choose a Computer Science major<br/>',
choices: ['True', 'False'],
correctIndex: 0},
{questionHTML: '<b>2.</b>If teachers take initiative to recruit girls, there will be more girls who choose to enroll in computing class. <br/>',
choices: ['True', 'False'],
correctIndex: 0},
{questionHTML: '<b>3.</b>We could recruit students anytime and anywhere.<br/>',
choices: ['True', 'False'],
correctIndex: 0}
],
allCorrectOutput: 'You have known a lot about this topic! Good job!',
someIncorrectOutput: 'Think about why we need active recruiting. Please try again.'
}
];
Multiple Questions Group:
Code:
var activity = [
{ questionType: 'multiple choice group',
questionGroupHTML: '<p>This section will test your understanding on active recruiting.</p>',
questionsList: [
{questionHTML: '<b>1.</b> Why do we need active recruiting (AR)? <br>',
choices: ['A. Few girls consider computer science (CS) because of stereotypes', 'B. Most of girls don\'t realize the benefits of pursuing a computing career', 'C. A very small amount of girls explored computer science before and hardly know about the possible relationship between computing and their interests.', 'D. Many girls have no confidence in majoring in computer science', '5.As for a girl, few of their girl friends will major or have majored in computer science'], correctIndex: [0, 1, 2, 3,4]},
{questionHTML: '<b>2.</b> When should we recruit students?',
choices: ['A. After the course are ready', 'B. Anytime, anywhere', 'C. During the class, do AR for the coming relevant classes'], correctIndex: [0, 2]}
],
allCorrectMinCount: 2,
allCorrectOutput: 'Great job! You know the material well.',
someIncorrectOutput: 'You must answer all these two questions correctly.'
}
];
Be careful when you put question option. If there is a single quote, you have to use slash to escape it:
For example.
"Most of girls don\'t realize the benefits of pursuing a computing career"
You can't write as follow:
"Most of girls don't realize the benefits of pursuing a computing career"
Otherwise, it would promote error message, when you save it.