// Numbas version: finer_feedback_settings {"name": "Conditional 2", "extensions": ["stats", "jsxgraph", "permutations", "geogebra", "random_person", "codewords", "polynomials", "chemistry", "quantities"], "custom_part_types": [{"source": {"pk": 28, "author": {"name": "Marie Nicholson", "pk": 1799}, "edit_page": "/part_type/28/edit"}, "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": []}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {}, "parts": [{"marks": 1, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "prompt": "$j\\to d$
", "unitTests": [], "showCorrectAnswer": true, "type": "true-false", "settings": {"correct_answer_expr": "false"}, "scripts": {}, "variableReplacements": []}, {"marks": 1, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "prompt": "$j\\to g$
", "unitTests": [], "showCorrectAnswer": true, "type": "true-false", "settings": {"correct_answer_expr": "true"}, "scripts": {}, "variableReplacements": []}, {"marks": 1, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "prompt": "$d\\to h$
", "unitTests": [], "showCorrectAnswer": true, "type": "true-false", "settings": {"correct_answer_expr": "true"}, "scripts": {}, "variableReplacements": []}, {"marks": 1, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "prompt": "$\\lnot g \\to j$
", "unitTests": [], "showCorrectAnswer": true, "type": "true-false", "settings": {"correct_answer_expr": "true"}, "scripts": {}, "variableReplacements": []}, {"marks": 1, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "prompt": "$\\lnot g \\to \\lnot j$
", "unitTests": [], "showCorrectAnswer": true, "type": "true-false", "settings": {"correct_answer_expr": "true"}, "scripts": {}, "variableReplacements": []}, {"marks": 1, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "prompt": "$(j \\land h) \\to d$
", "unitTests": [], "showCorrectAnswer": true, "type": "true-false", "settings": {"correct_answer_expr": "false"}, "scripts": {}, "variableReplacements": []}, {"marks": 1, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "prompt": "$\\lnot j \\to (g \\land h)$
", "unitTests": [], "showCorrectAnswer": true, "type": "true-false", "settings": {"correct_answer_expr": "true"}, "scripts": {}, "variableReplacements": []}, {"marks": 1, "variableReplacementStrategy": "originalfirst", "extendBaseMarkingAlgorithm": true, "customMarkingAlgorithm": "", "showFeedbackIcon": true, "prompt": "$ (j \\lor d) \\to h$
", "unitTests": [], "showCorrectAnswer": true, "type": "true-false", "settings": {"correct_answer_expr": "true"}, "scripts": {}, "variableReplacements": []}], "statement": "Each of the following propositions has been assigned a symbol and a truth value:
\nLet j represent \"I jog\" and be TRUE
\nLet d represent “I diet” and be FALSE
\nLet g represent “I feel well” and be TRUE
\nLet h represent “I get hungry” and be TRUE
\nTell whether the conditional statement is true or false, given the truth values above.
", "preamble": {"js": "", "css": ""}, "tags": [], "functions": {}, "extensions": ["chemistry", "geogebra", "jsxgraph", "codewords", "permutations", "polynomials", "quantities", "random_person", "stats", "visjs"], "variablesTest": {"condition": "", "maxRuns": 100}, "rulesets": {}, "variable_groups": [], "ungrouped_variables": [], "metadata": {"description": "", "licence": "None specified"}, "name": "Conditional 2", "advice": "", "type": "question", "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}]}]}], "contributors": [{"name": "Marie Nicholson", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1799/"}]}