// Numbas version: finer_feedback_settings {"name": "Work Done - Knowledge Checker", "extensions": [], "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": [["question-resources/work_done.png", "/srv/numbas/media/question-resources/work_done.png"], ["question-resources/work.PNG", "/srv/numbas/media/question-resources/work.PNG"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Work Done - Knowledge Checker", "tags": [], "metadata": {"description": "A quick knowledge and understanding check of:
\n1) Work done concept.
\n2) Work done formulae: W = Fx and W = Fxcos(y).
\n3) Equivalent units of work.
", "licence": "All rights reserved"}, "statement": "This is a test to see your basic understanding of work.
", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"force_1": {"name": "force_1", "group": "W = Fx ", "definition": "random(1 .. 500#1)", "description": "Applied Force in Newtons
", "templateType": "randrange", "can_override": false}, "x_1": {"name": "x_1", "group": "W = Fx ", "definition": "random(0 .. 50#1)", "description": "Distance in Meters
", "templateType": "randrange", "can_override": false}, "Work_1": {"name": "Work_1", "group": "W = Fx ", "definition": "force_1*x_1", "description": "", "templateType": "anything", "can_override": false}, "distance": {"name": "distance", "group": "Ungrouped variables", "definition": "decimal(Work_2/force_2)", "description": "", "templateType": "anything", "can_override": true}, "force_2": {"name": "force_2", "group": "W = Fx ", "definition": "random(0 .. 250#1)", "description": "", "templateType": "randrange", "can_override": false}, "Work_2": {"name": "Work_2", "group": "W = Fx ", "definition": "random(0 .. 10000#1)", "description": "", "templateType": "randrange", "can_override": false}, "distance_2": {"name": "distance_2", "group": "W = Fx ", "definition": "random(0 .. 100#1)", "description": "", "templateType": "randrange", "can_override": false}, "work_3": {"name": "work_3", "group": "W = Fx ", "definition": "force_2*cos(angle*2pi/360)*distance_2", "description": "", "templateType": "anything", "can_override": false}, "angle": {"name": "angle", "group": "W = Fx ", "definition": "random(0 .. 90#1)", "description": "", "templateType": "randrange", "can_override": false}, "work_4": {"name": "work_4", "group": "W = Fx ", "definition": "random(0 .. 1000#1)", "description": "", "templateType": "randrange", "can_override": false}, "force_3": {"name": "force_3", "group": "W = Fx ", "definition": "random(0 .. 250#1)", "description": "", "templateType": "randrange", "can_override": false}, "distance_3": {"name": "distance_3", "group": "W = Fx ", "definition": "work_4/(cos(angle*2pi/360)*force_3)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["distance"], "variable_groups": [{"name": "W = Fx ", "variables": ["force_1", "x_1", "Work_1", "force_2", "Work_2", "distance_2", "angle", "work_3", "work_4", "force_3", "distance_3"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "The work done on an object depends on the size of the
\n[[0]]
", "gaps": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "alternatives": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "alternativeFeedbackMessage": "", "useAlternativeFeedback": false, "minMarks": 0, "maxMarks": 0, "shuffleChoices": false, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": [], "matrix": [], "distractors": []}], "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": 0, "showCellAnswerState": true, "choices": ["Force and Power", "Acceleration and Mass", "Applied Force and Distance ", "Velocity and Acceleration"], "matrix": [0, 0, "1", 0], "distractors": ["", "", "", ""]}], "sortAnswers": false}, {"type": "true-false", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "For work to be done on an object, the applied force must act in the same direction that the object is moving.
", "settings": {"correct_answer_expr": "true"}}, {"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Select two equivalent units for the Joule (J)
", "minMarks": 0, "maxMarks": "2", "shuffleChoices": true, "displayType": "checkbox", "displayColumns": 0, "minAnswers": 0, "maxAnswers": "2", "warningType": "prevent", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["\\[Nm \\]", "\\[Nkgs \\]", "\\[Ns \\]", "\\[kgm^2s^{-2}\\]"], "matrix": ["1", 0, 0, "1"], "distractors": ["", "", "", ""]}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "A force of {force_1} N is applied to an object. The object moves {x_1} m in the direction of the applied force.
\nCalculate the work done on the object.
", "minValue": "{Work_1}", "maxValue": "{Work_1}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "sigfig", "precision": "3", "precisionPartialCredit": "50", "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "An object has {Work_2} J of work done on it when a force of {force_2} N acts on it.
\nCalculate the distance travelled by the object in m
", "minValue": "{distance}", "maxValue": "{distance}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "sigfig", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": true, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "The next questions involve using the equation for Work when the applied force, F, is at an angle.
"}, {"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "The work done by the gravitational force on the Moon in this image is:
\nAn object has a force of {force_2} N applied to it at an angle of {angle}$^o$ to the horizontal.
\nThe object moves {distance_2} m.
\nDetermine the work done on the object.
", "minValue": "{work_3}", "maxValue": "{work_3}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "sigfig", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}, {"type": "numberentry", "useCustomName": false, "customName": "", "marks": "3", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "An object has {work_4} J of work done on it. A force of {force_3} N acts on it at an angle of {angle}$^o$ to the horizontal.
\nCalculate how far the object will move.
", "minValue": "{distance_3}", "maxValue": "{distance_3}", "correctAnswerFraction": false, "allowFractions": false, "mustBeReduced": false, "mustBeReducedPC": 0, "displayAnswer": "", "precisionType": "sigfig", "precision": "3", "precisionPartialCredit": 0, "precisionMessage": "You have not given your answer to the correct precision.", "strictPrecision": false, "showPrecisionHint": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Paul Williams", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/28920/"}]}]}], "contributors": [{"name": "Paul Williams", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/28920/"}]}