// Numbas version: exam_results_page_options {"name": "Straight line graph table completion", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"ungrouped_variables": ["m", "x1", "x2", "x3", "x4", "x5", "c", "y1", "y2", "y3", "y4", "y5"], "variablesTest": {"condition": "", "maxRuns": 100}, "advice": "

When calculating y with a given value of x, take the equation of the line (y = mx + c) and input the value of x.

\n

For example, for y = 2x + 3, if x = 5:
y = 2(5) + 3
y = 10 + 3
y = 13

", "functions": {}, "tags": [], "metadata": {"licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", "description": "

Completing a table of x and y values from a straight line graph equation.

"}, "rulesets": {}, "extensions": [], "preamble": {"css": "", "js": ""}, "variable_groups": [], "name": "Straight line graph table completion", "statement": "

For the straight line graph $y = \\var{m}x + \\var{c}$:

", "parts": [{"variableReplacements": [], "minValue": "y1", "correctAnswerFraction": false, "allowFractions": false, "scripts": {}, "prompt": "

What is $y$ if $x = \\var{x1}$?

", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 1, "maxValue": "y1", "type": "numberentry"}, {"variableReplacements": [], "minValue": "y2", "correctAnswerFraction": false, "allowFractions": false, "scripts": {}, "prompt": "

What is $y$ if $x = \\var{x2}$?

", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 1, "maxValue": "y2", "type": "numberentry"}, {"variableReplacements": [], "minValue": "y3", "correctAnswerFraction": false, "allowFractions": false, "scripts": {}, "prompt": "

What is $y$ if $x = \\var{x3}$?

", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 1, "maxValue": "y3", "type": "numberentry"}, {"variableReplacements": [], "minValue": "y4", "correctAnswerFraction": false, "allowFractions": false, "scripts": {}, "prompt": "

What is $y$ if $x = \\var{x4}$?

", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 1, "maxValue": "y4", "type": "numberentry"}, {"variableReplacements": [], "minValue": "y5", "correctAnswerFraction": false, "allowFractions": false, "scripts": {}, "prompt": "

What is $y$ if $x = \\var{x5}$?

", "variableReplacementStrategy": "originalfirst", "showCorrectAnswer": true, "marks": 1, "maxValue": "y5", "type": "numberentry"}], "variables": {"y2": {"templateType": "anything", "definition": "(m*x2)+c", "name": "y2", "group": "Ungrouped variables", "description": ""}, "x1": {"templateType": "anything", "definition": "random(-10..10)", "name": "x1", "group": "Ungrouped variables", "description": ""}, "y5": {"templateType": "anything", "definition": "(m*x5)+c", "name": "y5", "group": "Ungrouped variables", "description": ""}, "x2": {"templateType": "anything", "definition": "random(-10..10 except [x1])", "name": "x2", "group": "Ungrouped variables", "description": ""}, "y1": {"templateType": "anything", "definition": "(m*x1)+c", "name": "y1", "group": "Ungrouped variables", "description": ""}, "c": {"templateType": "anything", "definition": "random(-10..10)", "name": "c", "group": "Ungrouped variables", "description": ""}, "m": {"templateType": "anything", "definition": "random(-10..10)", "name": "m", "group": "Ungrouped variables", "description": ""}, "x5": {"templateType": "anything", "definition": "random(-10..10 except [x2,x3,x4,x1])", "name": "x5", "group": "Ungrouped variables", "description": ""}, "x4": {"templateType": "anything", "definition": "random(-10..10 except [x2,x3,x1])", "name": "x4", "group": "Ungrouped variables", "description": ""}, "x3": {"templateType": "anything", "definition": "random(-10..10 except [x2,x1])", "name": "x3", "group": "Ungrouped variables", "description": ""}, "y4": {"templateType": "anything", "definition": "(m*x4)+c", "name": "y4", "group": "Ungrouped variables", "description": ""}, "y3": {"templateType": "anything", "definition": "(m*x3)+c", "name": "y3", "group": "Ungrouped variables", "description": ""}}, "type": "question", "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/"}]}