// Numbas version: exam_results_page_options {"name": "Construct a stem-and-leaf plot", "extensions": ["stats"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "preamble": {"css": "", "js": ""}, "type": "question", "name": "Construct a stem-and-leaf plot", "parts": [{"type": "gapfill", "showCorrectAnswer": true, "showFeedbackIcon": true, "unitTests": [], "gaps": [{"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "unitTests": [], "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "scripts": {}, "minValue": "{u[0][0]}", "maxValue": "{u[0][0]}", "marks": 0.2, "variableReplacements": [], "customMarkingAlgorithm": ""}, {"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "unitTests": [], "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "scripts": {}, "minValue": "{u[0][1]}", "maxValue": "{u[0][1]}", "marks": 0.2, "variableReplacements": [], "customMarkingAlgorithm": ""}, {"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "unitTests": [], "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "scripts": {}, "minValue": "{u[0][2]}", "maxValue": "{u[0][2]}", "marks": 0.2, "variableReplacements": [], "customMarkingAlgorithm": ""}, {"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "unitTests": [], "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "scripts": {}, "minValue": "{u[0][3]}", "maxValue": "{u[0][3]}", "marks": 0.2, "variableReplacements": [], "customMarkingAlgorithm": ""}, {"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "unitTests": [], "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "scripts": {}, "minValue": "{u[0][4]}", "maxValue": "{u[0][4]}", "marks": 0.2, "variableReplacements": [], "customMarkingAlgorithm": ""}, {"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "unitTests": [], "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "scripts": {}, "minValue": "{u[1][0]}", "maxValue": "{u[1][0]}", "marks": 0.2, "variableReplacements": [], "customMarkingAlgorithm": ""}, {"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "unitTests": [], "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "scripts": {}, "minValue": "{u[1][1]}", "maxValue": "{u[1][1]}", "marks": 0.2, "variableReplacements": [], "customMarkingAlgorithm": ""}, {"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "unitTests": [], "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "scripts": {}, "minValue": "{u[1][2]}", "maxValue": "{u[1][2]}", "marks": 0.2, "variableReplacements": [], "customMarkingAlgorithm": ""}, {"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "unitTests": [], "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "scripts": {}, "minValue": "{u[1][3]}", "maxValue": "{u[1][3]}", "marks": 0.2, "variableReplacements": [], "customMarkingAlgorithm": ""}, {"correctAnswerFraction": false, "mustBeReduced": false, "type": "numberentry", "showCorrectAnswer": true, "notationStyles": ["plain", "en", "si-en"], "correctAnswerStyle": "plain", "mustBeReducedPC": 0, "unitTests": [], "showFeedbackIcon": true, "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "allowFractions": false, "scripts": {}, "minValue": "{u[1][4]}", "maxValue": "{u[1][4]}", "marks": 0.2, "variableReplacements": [], "customMarkingAlgorithm": ""}], "extendBaseMarkingAlgorithm": true, "variableReplacementStrategy": "originalfirst", "sortAnswers": false, "scripts": {}, "marks": 0, "variableReplacements": [], "customMarkingAlgorithm": "", "prompt": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
STEMLEAF
$\\var{v}$[[0]][[1]][[2]][[3]][[4]]
$\\var{v+1}$[[5]][[6]][[7]][[8]][[9]]
"}], "metadata": {"licence": "Creative Commons Attribution 4.0 International", "description": "

Given random set of data (between 13 and 23 numbers all less than 100), find their stem-and-leaf plot.
This version of the question asks for 10 fields to be filled rather than the full 25, although the question statement asks for 25. I am sure that the first version asked for all 25.

"}, "tags": [], "variables": {"s": {"templateType": "anything", "definition": "flattenint(arr)", "description": "", "name": "s", "group": "Ungrouped variables"}, "ss": {"templateType": "anything", "definition": "shuffle(s)", "description": "", "name": "ss", "group": "Ungrouped variables"}, "r": {"templateType": "anything", "definition": "shuffle([random(1..4),random(4..5),random(3..5),random(3..5),random(2..4)])", "description": "", "name": "r", "group": "Ungrouped variables"}, "arr": {"templateType": "anything", "definition": "map(sort(repeat(10*y+random(0..9),r[y-v])),y,v..v+4)", "description": "", "name": "arr", "group": "Ungrouped variables"}, "darr1": {"templateType": "anything", "definition": "map(['$'+(v+y)+'$'+ ':']+arr1[y],y,0..4)", "description": "", "name": "darr1", "group": "Ungrouped variables"}, "u": {"templateType": "anything", "definition": "map(map(if(pConstruct a stem-and-leaf plot for the following data. Input all numbers into the fields below.

\n

{table([ss],[])}

\n

 NOTE: All 25 fields have to be filled in. Input -1 if there is no number in a field.

\n

 

\n

 

\n \n", "advice": "\n

Ordering the data gives:

\n

{table([s],[])}

\n

Splitting into the groups of 10s gives

\n

{table(arr,[])}

\n

Then putting this into stem-and-leaf plot gives

\n

{table(darr1,['STEM'])}

\n \n", "extensions": ["stats"], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}]}]}], "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}, {"name": "Chris Graham", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/369/"}]}