// Numbas version: finer_feedback_settings {"name": "PLC Symbol Match", "extensions": [], "custom_part_types": [], "resources": [["question-resources/NO.png", "Screenshot_2025-06-25_155324.png"], ["question-resources/NC.png", "NC.png"], ["question-resources/Coil.png", "Coil.png"], ["question-resources/Set Coil.png", "Set_Coil.png"], ["question-resources/Reset Coil.png", "Reset_Coil.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "PLC Symbol Match", "tags": [], "metadata": {"description": "", "licence": "All rights reserved"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"Choice_List": {"name": "Choice_List", "group": "Ungrouped variables", "definition": "[\"resources/question-resources/NO.png\", \"resources/question-resources/NC.png\", \"resources/question-resources/Coil.png\", \"resources/question-resources/Set Coil.png\", \"resources/question-resources/Reset Coil.png\"]", "description": "", "templateType": "anything", "can_override": false}, "Answer_List": {"name": "Answer_List", "group": "Ungrouped variables", "definition": "[\"Normally Open Contact\", \"Normally Closed Contact\", \"Coil\", \"Set Coil\", \"Reset Coil\"]", "description": "", "templateType": "anything", "can_override": false}, "pool": {"name": "pool", "group": "Ungrouped variables", "definition": "shuffle(0..(len(answer_list))-1)", "description": "", "templateType": "anything", "can_override": false}, "Number_Of_Items_To_generate": {"name": "Number_Of_Items_To_generate", "group": "Ungrouped variables", "definition": "2", "description": "", "templateType": "anything", "can_override": false}, "number_of_items_to_generate_corrected": {"name": "number_of_items_to_generate_corrected", "group": "Ungrouped variables", "definition": "min(number_of_items_to_generate, len(pool))", "description": "", "templateType": "anything", "can_override": false}, "Which_To_Shorten": {"name": "Which_To_Shorten", "group": "Ungrouped variables", "definition": "\"Answer\"", "description": "

You can change this variable to determine which of the lists you randomise and shrink. Non selected lists will just stay at their full size

", "templateType": "anything", "can_override": false}, "final_pool": {"name": "final_pool", "group": "Ungrouped variables", "definition": "groups_of(pool, number_of_items_to_generate)[0] + repeat(1000, len(pool)-number_of_items_to_generate)", "description": "", "templateType": "anything", "can_override": false}, "final_choice_list": {"name": "final_choice_list", "group": "Ungrouped variables", "definition": "if(which_to_shorten=\"Both\" or which_to_shorten=\"Choice\", groups_of(map(y, [x,y], sorted_choice), number_of_items_to_generate)[0], map(y, [x,y], sorted_choice))", "description": "", "templateType": "anything", "can_override": false}, "keys_choice": {"name": "keys_choice", "group": "Ungrouped variables", "definition": "zip(pool, choice_list)", "description": "", "templateType": "anything", "can_override": false}, "keys_answer": {"name": "keys_answer", "group": "Ungrouped variables", "definition": "zip(pool, answer_list)", "description": "", "templateType": "anything", "can_override": false}, "sorted_choice": {"name": "sorted_choice", "group": "Ungrouped variables", "definition": "sort_by(0,keys_choice)", "description": "", "templateType": "anything", "can_override": false}, "sorted_answer": {"name": "sorted_answer", "group": "Ungrouped variables", "definition": "sort_by(0,keys_answer)", "description": "", "templateType": "anything", "can_override": false}, "final_answer_list": {"name": "final_answer_list", "group": "Ungrouped variables", "definition": "if(which_to_shorten=\"Both\" or which_to_shorten=\"Answer\", groups_of(map(y, [x,y], sorted_answer), number_of_items_to_generate)[0], map(y, [x,y], sorted_answer))", "description": "", "templateType": "anything", "can_override": true}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["Choice_List", "Answer_List", "Which_To_Shorten", "Number_Of_Items_To_generate", "pool", "number_of_items_to_generate_corrected", "final_pool", "keys_choice", "keys_answer", "sorted_choice", "sorted_answer", "final_choice_list", "final_answer_list"], "variable_groups": [{"name": "Unnamed group", "variables": []}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_x", "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": "

Below you have a series of PLC ladder logic symbols, match them with their names:

", "minMarks": 0, "maxMarks": 0, "minAnswers": 0, "maxAnswers": 0, "shuffleChoices": true, "shuffleAnswers": true, "displayType": "radiogroup", "warningType": "none", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["<img src=\"{{final_choice_list[0]}}\" alt=\"Diagram\" />", "<img src=\"{{final_choice_list[1]}}\" alt=\"Diagram\" />", "<img src=\"{{final_choice_list[2]}}\" alt=\"Diagram\" />", "<img src=\"{{final_choice_list[3]}}\" alt=\"Diagram\" />", "<img src=\"{{final_choice_list[4]}}\" alt=\"Diagram\" />"], "matrix": [["1", "0"], ["0", "1"], ["0", "0"], ["0", "0"], ["0", "0"]], "layout": {"type": "all", "expression": ""}, "answers": ["{final_answer_list[0]}", "{final_answer_list[1]}"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "James Absolom", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/30582/"}], "resources": ["question-resources/NO.png", "question-resources/NC.png", "question-resources/Coil.png", "question-resources/Set Coil.png", "question-resources/Reset Coil.png"]}]}], "contributors": [{"name": "James Absolom", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/30582/"}]}