// Numbas version: exam_results_page_options {"name": "Free Body Diagram 2", "extensions": [], "custom_part_types": [], "resources": [["question-resources/fbd-0_mCuZXP7.png", "/srv/numbas/media/question-resources/fbd-0_mCuZXP7.png"], ["question-resources/fbd-1_A1jE3RW.png", "/srv/numbas/media/question-resources/fbd-1_A1jE3RW.png"], ["question-resources/fbd-2_AsVnLti.png", "/srv/numbas/media/question-resources/fbd-2_AsVnLti.png"], ["question-resources/fbd-3_R8yRyT1.png", "/srv/numbas/media/question-resources/fbd-3_R8yRyT1.png"], ["question-resources/fbd-4_t09hKMf.png", "/srv/numbas/media/question-resources/fbd-4_t09hKMf.png"], ["question-resources/fbd-5_R9qCm5N.png", "/srv/numbas/media/question-resources/fbd-5_R9qCm5N.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Free Body Diagram 2", "tags": [], "metadata": {"description": "Identify errors in student-drawn free body diagrams of a rigid body.", "licence": "Creative Commons Attribution-NonCommercial 4.0 International"}, "statement": "

Identify the errors (if any) in the student's free body diagram of post $CD$.  Contact at $C$ is frictionless.  Both pieces have non-negligible weight.

\n
\n\n\n\n\n\n\n\n
\n

{image('resources/question-resources/'+this['filename'])}

\n
\n
\n

", "advice": "

{mistakes} 

\n
    \n
  1. Because the contact at $C$ is frictionless the force acts perpendicular to bar $ACB$ and should be drawn acting in that direction, although it is not strictly an error to dry components $C_x$ and $C_y$ this tends to lead to errors.
  2. \n
  3. You can't push a rope, so the force of the cable on the post acts to the left.
  4. \n
  5. There is a fixed connection at $D$, so that should be represented by $D_x, D_y$ and a moment.
  6. \n
  7. Since there is a non-negliable weight, don't forget the weight vector pointing down at the center of gravity.
  8. \n
", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"mistakes": {"name": "mistakes", "group": "Ungrouped variables", "definition": "this['errors']", "description": "

the mistakes to be identified

", "templateType": "anything", "can_override": false}, "choices": {"name": "choices", "group": "Ungrouped variables", "definition": "[\n\"Body incorrectly isolated from supports\",\n\"Missing labels\",\n\"Incorrect labeling\",\n\"Missing arrowheads\",\n\"Tension wrong direction\",\n\"Incorrect reaction at C\",\n\"Incorrect reaction at D\",\n\"Extra forces\",\n\"Missing weight\",\n\"Force with known direction shown as components\",\n\"No errors\"\n]\n\n", "description": "

list of possible mistakes -- checkbox labels

", "templateType": "anything", "can_override": false}, "fbds": {"name": "fbds", "group": "Ungrouped variables", "definition": "json_decode(safe(\"[\\n {\\n \\\"filename\\\": \\\"fbd-1_A1jE3RW.png\\\",\\n \\\"errors\\\": [\\n \\\"No errors\\\"\\n ]\\n },\\n {\\n \\\"filename\\\": \\\"fbd-2_AsVnLti.png\\\",\\n \\\"errors\\\": [\\n \\\"Incorrect reaction at D\\\",\\n \\\"Missing weight\\\"\\n ]\\n },\\n {\\n \\\"filename\\\": \\\"fbd-3_R8yRyT1.png\\\",\\n \\\"errors\\\": [\\n \\\"Tension wrong direction\\\",\\n \\\"Incorrect reaction at C\\\",\\n \\\"Missing weight\\\"\\n ]\\n },\\n {\\n \\\"filename\\\": \\\"fbd-4_t09hKMf.png\\\",\\n \\\"errors\\\": [\\n \\\"Tension wrong direction\\\",\\n \\\"Incorrect labeling\\\",\\n \\\"Incorrect reaction at D\\\",\\n \\\"Missing weight\\\",\\n \\\"Force with known direction shown as components\\\"\\n ]\\n },\\n {\\n \\\"filename\\\": \\\"fbd-5_R9qCm5N.png\\\",\\n \\\"errors\\\": [\\n \\\"Missing labels\\\",\\n \\\"Incorrect labeling\\\",\\n \\\"Incorrect reaction at C\\\",\\n \\\"Incorrect reaction at D\\\",\\n \\\"Missing weight\\\"\\n ]\\n }\\n]\"))", "description": "

array containing problem image file name and cooresponding errors

", "templateType": "json", "can_override": false}, "this": {"name": "this", "group": "Ungrouped variables", "definition": "fbds[index]", "description": "

the current fbd and mistakes

", "templateType": "anything", "can_override": false}, "index": {"name": "index", "group": "Ungrouped variables", "definition": "random(0..length(fbds)-1)", "description": "

selects the fbd for the question

\n

\n

", "templateType": "anything", "can_override": false}, "matrix": {"name": "matrix", "group": "Ungrouped variables", "definition": "map(if(indices(mistakes, d)=[],0,1),d,choices)", "description": "

the marking matrix.  For each checkbox, 0 if not a mistake, 1 if a mistake.

", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["fbds", "this", "mistakes", "choices", "index", "matrix"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": "img{width:600px;}"}, "parts": [{"type": "m_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "mark:\n assert(marks>0,correct()); // any answer is correct when 0 marks are available\n assert(numTicks>0,\n warn(translate(\"part.marking.nothing entered\"));\n fail(translate(\"part.marking.nothing entered\"))\n );\n apply(same_ticks)\n\nshould_be_ticked (A chocie should be ticked if it's awarded ap ositive number of marks):\n map(map(y>0,y,row),row,settings[\"matrix\"])\n\nsame_ticks (Did the student tick the same choices as the expected answer?):\n correctif(studentanswer=should_be_ticked)\n\n", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Check {length(mistakes)} {pluralise(length(mistakes),\"box\",\"boxes\")}.

", "minMarks": "0", "maxMarks": "10", "shuffleChoices": false, "displayType": "checkbox", "displayColumns": "2", "minAnswers": "length(mistakes)", "maxAnswers": "length(mistakes)", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": "choices", "matrix": "matrix"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}]}]}], "contributors": [{"name": "William Haynes", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2530/"}]}