// Numbas version: exam_results_page_options {"name": "SIT316-Constraint Programming - Q1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "SIT316-Constraint Programming - Q1", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"a1": {"name": "a1", "group": "Ungrouped variables", "definition": "random(-10..20)", "description": "", "templateType": "anything", "can_override": false}, "a2": {"name": "a2", "group": "Ungrouped variables", "definition": "random(-10..20 except a1)", "description": "", "templateType": "anything", "can_override": false}, "a12": {"name": "a12", "group": "Ungrouped variables", "definition": "repeat(random(-15..45),5)", "description": "", "templateType": "anything", "can_override": false}, "sol0": {"name": "sol0", "group": "Ungrouped variables", "definition": "if(a12[0]>=a1 and a12[0]>a2, 1, 0)", "description": "", "templateType": "anything", "can_override": false}, "sol1": {"name": "sol1", "group": "Ungrouped variables", "definition": "if(a12[1]>=a1 and a12[1]>a2, 1, 0)", "description": "", "templateType": "anything", "can_override": false}, "sol2": {"name": "sol2", "group": "Ungrouped variables", "definition": "if(a12[2]>=a1 and a12[2]>a2, 1, 0)", "description": "", "templateType": "anything", "can_override": false}, "sol3": {"name": "sol3", "group": "Ungrouped variables", "definition": "if(a12[3]>=a1 and a12[3]>a2, 1, 0)", "description": "", "templateType": "anything", "can_override": false}, "sol4": {"name": "sol4", "group": "Ungrouped variables", "definition": "if(a12[4]>=a1 and a12[4]>a2, 1, 0)", "description": "", "templateType": "anything", "can_override": false}, "code1": {"name": "code1", "group": "Ungrouped variables", "definition": "abs(a12[4])", "description": "", "templateType": "anything", "can_override": false}, "code2": {"name": "code2", "group": "Ungrouped variables", "definition": "abs(a12[3])", "description": "", "templateType": "anything", "can_override": false}, "code3": {"name": "code3", "group": "Ungrouped variables", "definition": "abs(a12[2])", "description": "", "templateType": "anything", "can_override": false}, "code4": {"name": "code4", "group": "Ungrouped variables", "definition": "abs(a12[1])", "description": "", "templateType": "anything", "can_override": false}, "code5": {"name": "code5", "group": "Ungrouped variables", "definition": "abs(a12[0])", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["a1", "a2", "a12", "sol0", "sol1", "sol2", "sol3", "sol4", "code1", "code2", "code3", "code4", "code5"], "variable_groups": [], "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": "

P-{code1}{code2}{code3}{code4}{code5} 

\n

Which of the following values of $X$ statisfy the constraint ($X\u2004≥\u2004\\var{a1}$)\u2005$\\land$\u2005($X\u2004>\u2004\\var{a2}$)?

\n

(Put $ 1$ for \"Yes\" and  $ 0$ for \"No\")

\n

a) $X\u2004=\u2004\\var{a12[0]}$  [[0]]

\n

b) $X\u2004=\u2004\\var{a12[1]}$  [[1]]

\n

c) $X\u2004=\u2004\\var{a12[2]}$  [[2]]

\n

d) $X\u2004=\u2004\\var{a12[3]}$  [[3]]

\n

e) $X\u2004=\u2004\\var{a12[4]}$  [[4]]

", "gaps": [{"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{sol0}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{sol1}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{sol2}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{sol3}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": "0.2", "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "answer": "{sol4}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": true, "implicitFunctionComposition": false, "caseSensitive": false, "valuegenerators": []}], "sortAnswers": false}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}]}]}], "contributors": [{"name": "Musa Mammadov", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4417/"}]}