{ "source": { "author": { "name": "Marie Nicholson" } }, "name": "True/False", "short_name": "true-false", "description": "
The answer is either 'True' or 'False'
", "help_url": "", "input_widget": "radios", "input_options": { "correctAnswer": "if(eval(settings[\"correct_answer_expr\"]), 0, 1)", "hint": { "static": true, "value": "" }, "choices": { "static": true, "value": [ "True", "False" ] } }, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\nif(studentanswer=correct_answer,\n correct(),\n incorrect()\n)\n\ninterpreted_answer:\nstudentAnswer=0\n\ncorrect_answer:\nif(eval(settings[\"correct_answer_expr\"]),0,1)", "marking_notes": [ { "name": "mark", "description": "This is the main marking note. It should award credit and provide feedback based on the student's answer.", "definition": "if(studentanswer=correct_answer,\n correct(),\n incorrect()\n)" }, { "name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "studentAnswer=0" }, { "name": "correct_answer", "description": "", "definition": "if(eval(settings[\"correct_answer_expr\"]),0,1)" } ], "settings": [ { "name": "correct_answer_expr", "label": "Is the answer \"True\"", "help_url": "", "hint": "", "input_type": "mathematical_expression", "default_value": "true", "subvars": false } ], "public_availability": "always", "published": true, "extensions": [] }