// Numbas version: exam_results_page_options {"name": "Simple addition", "extensions": [], "custom_part_types": [{"source": {"pk": 1, "author": {"name": "Christian Lawson-Perfect", "pk": 7}, "edit_page": "/part_type/1/edit"}, "name": "Yes/no", "short_name": "yes-no", "description": "

The student is shown two radio choices: \"Yes\" and \"No\". One of them is correct.

", "help_url": "", "input_widget": "radios", "input_options": {"correctAnswer": "if(eval(settings[\"correct_answer_expr\"]), 0, 1)", "hint": {"static": true, "value": ""}, "choices": {"static": true, "value": ["Yes", "No"]}}, "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 \"Yes\"?", "help_url": "", "hint": "An expression which evaluates to true or false.", "input_type": "mathematical_expression", "default_value": "true", "subvars": false}], "public_availability": "always", "published": true, "extensions": []}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variablesTest": {"maxRuns": "1", "condition": "1"}, "tags": [], "extensions": [], "functions": {}, "metadata": {"licence": "None specified", "description": "

Simple addition, is it true?

"}, "name": "Simple addition", "statement": "

2+2=4

", "variables": {"prob_no": {"group": "Ungrouped variables", "templateType": "anything", "definition": "0", "name": "prob_no", "description": "

Probability of 4 not being 2+2

"}, "prob_yes": {"group": "Ungrouped variables", "templateType": "anything", "definition": "100", "name": "prob_yes", "description": "

The probability of 2+2=4 

"}}, "preamble": {"css": "", "js": ""}, "advice": "

It's true

", "rulesets": {}, "parts": [{"marks": 1, "variableReplacementStrategy": "originalfirst", "unitTests": [], "prompt": "

Probability of 4, when 2+2?

", "customMarkingAlgorithm": "", "scripts": {}, "showFeedbackIcon": true, "settings": {"correct_answer_expr": "true"}, "type": "yes-no", "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "showCorrectAnswer": true}], "ungrouped_variables": ["prob_yes", "prob_no"], "type": "question", "contributors": [{"name": "Matthew Jones", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2846/"}]}]}], "contributors": [{"name": "Matthew Jones", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2846/"}]}