// Numbas version: finer_feedback_settings {"name": "Lecture 3 Quiz 2", "metadata": {"description": "", "licence": "None specified"}, "duration": 300, "percentPass": 0, "showQuestionGroupNames": false, "shuffleQuestionGroups": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", ""], "variable_overrides": [[], []], "questions": [{"name": "Complements", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Charles Zworestine", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12364/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Consider the sets $A=\\{\\var{a},a,l,e,x,\\var{b}\\}$ and $B=\\{c,a,r,\\var{b},\\var{a},l,o,s\\}$.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a": {"name": "a", "group": "Ungrouped variables", "definition": "random(0..9)", "description": "", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Ungrouped variables", "definition": "random(10..99)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a", "b"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "gapfill", "useCustomName": true, "customName": "(a)", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Listed in alphabetical order, the elements of $A\\setminus B$ are [[0]] and [[1]].

", "gaps": [{"type": "patternmatch", "useCustomName": true, "customName": "r", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "e", "displayAnswer": "", "matchMode": "exact", "allowEmpty": false}, {"type": "patternmatch", "useCustomName": true, "customName": "s", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "x", "displayAnswer": "", "matchMode": "exact", "allowEmpty": false}], "sortAnswers": false}, {"type": "gapfill", "useCustomName": true, "customName": "(b)", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Listed in alphabetical order, the elements of $B\\setminus A$ are [[0]], [[1]], [[2]] and [[3]].

", "gaps": [{"type": "patternmatch", "useCustomName": true, "customName": "(i)", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "c", "displayAnswer": "", "matchMode": "exact", "allowEmpty": false}, {"type": "patternmatch", "useCustomName": true, "customName": "(ii)", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "o", "displayAnswer": "", "matchMode": "exact", "allowEmpty": false}, {"type": "patternmatch", "useCustomName": true, "customName": "(iii)", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "r", "displayAnswer": "", "matchMode": "exact", "allowEmpty": false}, {"type": "patternmatch", "useCustomName": true, "customName": "(iv)", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "s", "displayAnswer": "", "matchMode": "exact", "allowEmpty": false}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}, {"name": "Set Identities Part 2", "extensions": [], "custom_part_types": [{"source": {"pk": 135, "author": {"name": "Daniella Leloch", "pk": 10165}, "edit_page": "/part_type/135/edit"}, "name": "Daniella's copy of True or False", "short_name": "daniella-s-copy-of-true-or-false", "description": "

The student must write T or True for 'true', or F or False for 'false'. (Case doesn't matter)

", "help_url": "", "input_widget": "string", "input_options": {"correctAnswer": "if(eval(settings[\"is_true\"]),settings[\"true_words\"][0],settings[\"false_words\"][0])", "hint": {"static": true, "value": ""}, "allowEmpty": {"static": true, "value": false}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\napply(interpreted_answer);\napply(is_correct)\n\ninterpreted_answer:\nswitch(\n cleaned_studentAnswer in true_words,\n true,\n cleaned_studentAnswer in false_words,\n false,\n // otherwise\n warn(\"Write \"+settings[\"true_words\"][0]+\" or \"+settings[\"false_words\"][0]);\n fail(\"Write \"+settings[\"true_words\"][0]+\" or \"+settings[\"false_words\"][0])\n)\n\n\nis_correct:\ncorrectif(interpreted_answer=should_be_true)\n\ntrue_words:\nmap(lower(trim(x)),x,settings[\"true_words\"])\n\nfalse_words:\nmap(lower(trim(x)),x,settings[\"false_words\"])\n\ncleaned_studentAnswer:\nlower(trim(studentAnswer))\n\nshould_be_true:\neval(settings[\"is_true\"])", "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": "apply(interpreted_answer);\napply(is_correct)"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "switch(\n cleaned_studentAnswer in true_words,\n true,\n cleaned_studentAnswer in false_words,\n false,\n // otherwise\n warn(\"Write \"+settings[\"true_words\"][0]+\" or \"+settings[\"false_words\"][0]);\n fail(\"Write \"+settings[\"true_words\"][0]+\" or \"+settings[\"false_words\"][0])\n)\n"}, {"name": "is_correct", "description": "", "definition": "correctif(interpreted_answer=should_be_true)"}, {"name": "true_words", "description": "", "definition": "map(lower(trim(x)),x,settings[\"true_words\"])"}, {"name": "false_words", "description": "", "definition": "map(lower(trim(x)),x,settings[\"false_words\"])"}, {"name": "cleaned_studentAnswer", "description": "", "definition": "lower(trim(studentAnswer))"}, {"name": "should_be_true", "description": "", "definition": "eval(settings[\"is_true\"])"}], "settings": [{"name": "is_true", "label": "Is the answer 'true'?", "help_url": "", "hint": "An expression which evaluates to true or false.", "input_type": "mathematical_expression", "default_value": "true", "subvars": false}, {"name": "true_words", "label": "Words to interpret as 'true'", "help_url": "", "hint": "Any of the words in this list will be interpreted as \"True\"", "input_type": "list_of_strings", "default_value": ["T", "True"], "subvars": true}, {"name": "false_words", "label": "Words to interpret as 'false'", "help_url": "", "hint": "Any of the words in this list will be interpreted as \"False\".", "input_type": "list_of_strings", "default_value": ["F", "False"], "subvars": true}], "public_availability": "always", "published": true, "extensions": []}], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Charles Zworestine", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12364/"}], "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

State whether each of the following statements are true (T) or false (F) in general for all sets $A$, $B$ and $C$. (Hint: Use Venn diagrams)!

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "daniella-s-copy-of-true-or-false", "useCustomName": true, "customName": "(a)", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$A\\setminus B = B\\setminus A$

", "settings": {"is_true": "false", "true_words": ["T", "True"], "false_words": ["F", "False", "False"]}}, {"type": "daniella-s-copy-of-true-or-false", "useCustomName": true, "customName": "(b)", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$A\\setminus (B\\cup C) = (A\\setminus B)\\cap (A\\setminus C)$

", "settings": {"is_true": "true", "true_words": ["T", "True"], "false_words": ["F", "False", "False"]}}, {"type": "daniella-s-copy-of-true-or-false", "useCustomName": true, "customName": "(c)", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$(A\\cap B)\\setminus C = A\\cap (B\\setminus C)$

", "settings": {"is_true": "true", "true_words": ["T", "True"], "false_words": ["F", "False", "False"]}}, {"type": "daniella-s-copy-of-true-or-false", "useCustomName": true, "customName": "(d)", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

$(A\\setminus B)\\setminus C = A\\setminus (B\\setminus C)$

", "settings": {"is_true": "false", "true_words": ["T", "True"], "false_words": ["F", "False", "False"]}}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "allowPrinting": false, "navigation": {"allowregen": false, "reverse": true, "browse": true, "allowsteps": false, "showfrontpage": true, "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "typeendtoleave": false, "startpassword": "Kara4", "autoSubmit": true, "allowAttemptDownload": false, "downloadEncryptionKey": "", "showresultspage": "oncompletion"}, "timing": {"allowPause": false, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"enterreviewmodeimmediately": true, "showactualmarkwhen": "inreview", "showtotalmarkwhen": "inreview", "showanswerstatewhen": "inreview", "showpartfeedbackmessageswhen": "inreview", "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview", "allowrevealanswer": false, "intro": "", "end_message": "", "results_options": {"printquestions": true, "printadvice": false}, "feedbackmessages": [], "reviewshowexpectedanswer": true, "showanswerstate": false, "reviewshowfeedback": true, "showactualmark": false, "showtotalmark": false, "reviewshowscore": true, "reviewshowadvice": true}, "diagnostic": {"knowledge_graph": {"topics": [], "learning_objectives": []}, "script": "diagnosys", "customScript": ""}, "contributors": [{"name": "Charles Zworestine", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/12364/"}], "extensions": [], "custom_part_types": [{"source": {"pk": 135, "author": {"name": "Daniella Leloch", "pk": 10165}, "edit_page": "/part_type/135/edit"}, "name": "Daniella's copy of True or False", "short_name": "daniella-s-copy-of-true-or-false", "description": "

The student must write T or True for 'true', or F or False for 'false'. (Case doesn't matter)

", "help_url": "", "input_widget": "string", "input_options": {"correctAnswer": "if(eval(settings[\"is_true\"]),settings[\"true_words\"][0],settings[\"false_words\"][0])", "hint": {"static": true, "value": ""}, "allowEmpty": {"static": true, "value": false}}, "can_be_gap": true, "can_be_step": true, "marking_script": "mark:\napply(interpreted_answer);\napply(is_correct)\n\ninterpreted_answer:\nswitch(\n cleaned_studentAnswer in true_words,\n true,\n cleaned_studentAnswer in false_words,\n false,\n // otherwise\n warn(\"Write \"+settings[\"true_words\"][0]+\" or \"+settings[\"false_words\"][0]);\n fail(\"Write \"+settings[\"true_words\"][0]+\" or \"+settings[\"false_words\"][0])\n)\n\n\nis_correct:\ncorrectif(interpreted_answer=should_be_true)\n\ntrue_words:\nmap(lower(trim(x)),x,settings[\"true_words\"])\n\nfalse_words:\nmap(lower(trim(x)),x,settings[\"false_words\"])\n\ncleaned_studentAnswer:\nlower(trim(studentAnswer))\n\nshould_be_true:\neval(settings[\"is_true\"])", "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": "apply(interpreted_answer);\napply(is_correct)"}, {"name": "interpreted_answer", "description": "A value representing the student's answer to this part.", "definition": "switch(\n cleaned_studentAnswer in true_words,\n true,\n cleaned_studentAnswer in false_words,\n false,\n // otherwise\n warn(\"Write \"+settings[\"true_words\"][0]+\" or \"+settings[\"false_words\"][0]);\n fail(\"Write \"+settings[\"true_words\"][0]+\" or \"+settings[\"false_words\"][0])\n)\n"}, {"name": "is_correct", "description": "", "definition": "correctif(interpreted_answer=should_be_true)"}, {"name": "true_words", "description": "", "definition": "map(lower(trim(x)),x,settings[\"true_words\"])"}, {"name": "false_words", "description": "", "definition": "map(lower(trim(x)),x,settings[\"false_words\"])"}, {"name": "cleaned_studentAnswer", "description": "", "definition": "lower(trim(studentAnswer))"}, {"name": "should_be_true", "description": "", "definition": "eval(settings[\"is_true\"])"}], "settings": [{"name": "is_true", "label": "Is the answer 'true'?", "help_url": "", "hint": "An expression which evaluates to true or false.", "input_type": "mathematical_expression", "default_value": "true", "subvars": false}, {"name": "true_words", "label": "Words to interpret as 'true'", "help_url": "", "hint": "Any of the words in this list will be interpreted as \"True\"", "input_type": "list_of_strings", "default_value": ["T", "True"], "subvars": true}, {"name": "false_words", "label": "Words to interpret as 'false'", "help_url": "", "hint": "Any of the words in this list will be interpreted as \"False\".", "input_type": "list_of_strings", "default_value": ["F", "False"], "subvars": true}], "public_availability": "always", "published": true, "extensions": []}], "resources": []}