// Numbas version: finer_feedback_settings {"name": "\u00c9valuer une expression", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "\u00c9valuer une expression", "tags": [], "metadata": {"description": "

Platine

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

Calcule le nombre obtenu en remplaçant les lettres par les valeurs données.

\n

$a\\times b$ est noté $a\\cdot b$
$a : b$ est noté $\\dfrac{a}{b}$
Une barre de fraction induit des parenthèses. Ainsi, $\\dfrac{a+b}{c-d}=(a+b):(c-d)$

", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"a": {"name": "a", "group": "Valeurs g\u00e9n\u00e9riques 2..9 ou -", "definition": "repeat(random(-9..-2),20)", "description": "", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "2 ou 3", "definition": "repeat(random(2..3),10)", "description": "

Random 2..3

", "templateType": "anything", "can_override": false}, "b": {"name": "b", "group": "Valeurs g\u00e9n\u00e9riques 2..9 ou -", "definition": "repeat(random(2..9),20)", "description": "", "templateType": "anything", "can_override": false}, "i": {"name": "i", "group": "Impair (3,5)", "definition": "repeat(random(3,5),10)", "description": "", "templateType": "anything", "can_override": false}, "p": {"name": "p", "group": "Multiples avec 2 3 5", "definition": "repeat(random([12, 15, 16, 18, 20, 24]),20)", "description": "", "templateType": "anything", "can_override": false}, "q": {"name": "q", "group": "Multiples avec 2 3 5", "definition": "repeat(random([12, 15, 16, 18, 20, 24, 25, 27, 30, 32, 36, 40, 45, 48]),20)", "description": "", "templateType": "anything", "can_override": false}, "r": {"name": "r", "group": "Multiples avec 2 3 5", "definition": "repeat(random([2,3,5,6,8,9,10,12]),20)", "description": "", "templateType": "anything", "can_override": false}, "c": {"name": "c", "group": "Valeurs g\u00e9n\u00e9riques 2..9 ou -", "definition": "repeat(random(2..9),20)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [{"name": "Valeurs g\u00e9n\u00e9riques 2..9 ou -", "variables": ["b", "a", "c"]}, {"name": "2 ou 3", "variables": ["d"]}, {"name": "Impair (3,5)", "variables": ["i"]}, {"name": "Multiples avec 2 3 5", "variables": ["p", "q", "r"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

$-a^2 + 4a$ pour $a = \\var{a[0]}$.

", "answer": "-({a[0]}^2) + 4*{a[0]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": false, "implicitFunctionComposition": false, "caseSensitive": false, "notation": "standard", "notallowed": {"strings": ["(", "+", ":", "^", ")", "x"], "showStrings": false, "partialCredit": 0, "message": "Caractère interdit utilisé."}, "mustmatchpattern": {"pattern": "`+- $n", "partialCredit": 0, "message": "La réponse attendue est un nombre", "nameToCompare": "", "warningTime": "input"}, "valuegenerators": [], "functionsets": ["arithmetic", "complex_numbers", "exponentials", "trigonometry", "rounding", "number_theory", "comparison", "linear_algebra", "booleans", "set_theory", "intervals", "number_ranges", "lists", "dictionaries", "strings", "type_casting", "number_parsing", "precision", "json", "jme", "pattern_matching", "html", "randomisation", "control_flow", "comprehensions", "calculus", "marking", "http", "promises"], "enabledfunctions": [], "disabledfunctions": []}, {"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": false, "showFeedbackIcon": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

Calculer la valeur de $b^2 - 4ac$ pour $a = \\var{a[1]}$, $b = \\var{b[0]}$ et $c = \\var{c[0]}$.

", "answer": "{b[0]}^2 - 4*{a[1]}*{c[0]}", "showPreview": true, "checkingType": "absdiff", "checkingAccuracy": 0.001, "failureRate": 1, "vsetRangePoints": 5, "vsetRange": [0, 1], "checkVariableNames": false, "singleLetterVariables": false, "allowUnknownFunctions": false, "implicitFunctionComposition": false, "caseSensitive": false, "notation": "standard", "notallowed": {"strings": ["(", "+", ":", "^", ")", "x"], "showStrings": false, "partialCredit": 0, "message": "Caractère interdit utilisé."}, "mustmatchpattern": {"pattern": "`+- $n", "partialCredit": 0, "message": "La réponse attendue est un nombre", "nameToCompare": "", "warningTime": "input"}, "valuegenerators": [], "functionsets": ["arithmetic", "complex_numbers", "exponentials", "trigonometry", "rounding", "number_theory", "comparison", "linear_algebra", "booleans", "set_theory", "intervals", "number_ranges", "lists", "dictionaries", "strings", "type_casting", "number_parsing", "precision", "json", "jme", "pattern_matching", "html", "randomisation", "control_flow", "comprehensions", "calculus", "marking", "http", "promises"], "enabledfunctions": [], "disabledfunctions": []}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false, "contributors": [{"name": "Robin Lecocq", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/38160/"}], "resources": []}]}], "contributors": [{"name": "Robin Lecocq", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/38160/"}]}