// Numbas version: exam_results_page_options {"name": "Straight line graph", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": ["geogebra"], "variables": {"m": {"templateType": "anything", "definition": "(random(random(0..3),random(1/2,2/3,1/4,3/4,1/3)))*random(-1,1)", "name": "m", "group": "Ungrouped variables", "description": ""}, "defs": {"templateType": "anything", "definition": "[\n ['m',m],\n ['c',c]\n]", "name": "defs", "group": "Ungrouped variables", "description": ""}, "c": {"templateType": "anything", "definition": "random(-3..3)", "name": "c", "group": "Ungrouped variables", "description": ""}}, "functions": {"graph2": {"parameters": [], "definition": "", "language": "jme", "type": "html"}, "graph": {"parameters": [], "definition": "", "language": "jme", "type": "html"}, "graph3": {"parameters": [], "definition": "", "language": "jme", "type": "html"}}, "variablesTest": {"maxRuns": "200", "condition": ""}, "variable_groups": [], "tags": [], "advice": "", "ungrouped_variables": ["defs", "m", "c"], "parts": [{"showCorrectAnswer": true, "useCustomName": false, "showFeedbackIcon": false, "extendBaseMarkingAlgorithm": true, "unitTests": [], "customName": "", "type": "gapfill", "scripts": {}, "sortAnswers": false, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "customMarkingAlgorithm": "", "marks": 0, "gaps": [{"showCorrectAnswer": true, "useCustomName": false, "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "customName": "", "showPreview": true, "scripts": {}, "variableReplacementStrategy": "originalfirst", "variableReplacements": [], "answer": "{m}x+{c}", "failureRate": 1, "customMarkingAlgorithm": "", "vsetRangePoints": 5, "unitTests": [], "valuegenerators": [{"name": "x", "value": ""}], "type": "jme", "answerSimplification": "zeroFactor,fractionNumbers,unitFactor", "checkVariableNames": false, "vsetRange": [0, 1], "checkingAccuracy": 0.001, "marks": "2", "checkingType": "absdiff"}], "prompt": "

What is the equation of this line?

\n

$y = $ [[0]]

"}], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

This uses an embedded Geogebra graph of a line $y=mx+c$ with random coefficients set by NUMBAS.

"}, "name": "Straight line graph", "statement": "

The graph shows a straight line on a graph.

\n

{geogebra_applet('https://ggbm.at/FTsrJUzg', defs, [])}

\n

", "preamble": {"js": "", "css": ""}, "rulesets": {}, "contributors": [{"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}]}]}], "contributors": [{"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}]}