// Numbas version: exam_results_page_options {"name": "Number of roots", "extensions": ["geogebra", "jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"parts": [{"showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "gapfill", "variableReplacements": [], "prompt": "

{plotgraph(num_stat,num_roots, a, hshift, vshift)}

\n

Above is the graph of some function \$f\$.

\n

How many roots does \$f\$ have? [[0]]

", "unitTests": [], "extendBaseMarkingAlgorithm": true, "sortAnswers": false, "marks": 0, "customMarkingAlgorithm": "", "gaps": [{"showFeedbackIcon": true, "variableReplacementStrategy": "originalfirst", "scripts": {}, "type": "numberentry", "allowFractions": false, "correctAnswerStyle": "plain", "variableReplacements": [], "maxValue": "num_roots", "minValue": "num_roots", "extendBaseMarkingAlgorithm": true, "mustBeReducedPC": 0, "mustBeReduced": false, "unitTests": [], "marks": "1", "customMarkingAlgorithm": "", "correctAnswerFraction": false, "notationStyles": ["plain"], "showCorrectAnswer": true}], "showCorrectAnswer": true}], "extensions": ["geogebra", "jsxgraph"], "preamble": {"js": "", "css": ""}, "variables": {"num_roots": {"group": "Ungrouped variables", "description": "

The number of roots.

", "templateType": "anything", "name": "num_roots", "definition": "if(num_stat = 2, random(1..3), 1)"}, "a": {"group": "Ungrouped variables", "description": "

Coefficient of x^3

", "templateType": "anything", "name": "a", "definition": "random(-1..1 except 0)"}, "hshift": {"group": "Ungrouped variables", "description": "

Random amount of horizontal shift to create variability.

", "templateType": "anything", "name": "hshift", "definition": "random(-2..2)"}, "vshift": {"group": "Ungrouped variables", "description": "

Random amount of vertifical shift for sake of variability.

", "templateType": "anything", "name": "vshift", "definition": "random(-2..2)"}, "num_stat": {"group": "Ungrouped variables", "description": "

Number of stationary points

", "templateType": "anything", "name": "num_stat", "definition": "random(0..2)"}}, "statement": "

Finding the number of roots on a graph.

", "name": "Number of roots", "rulesets": {}, "tags": [], "metadata": {"description": "

A graph (of a cubic) is given. The question is to determine the number of roots.