// Numbas version: finer_feedback_settings {"name": "Sam's copy of Squares, Cubes, Roots and Primes", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a", "b", "c", "unroot", "d", "uncrt", "f", "g", "h", "j"], "name": "Sam's copy of Squares, Cubes, Roots and Primes", "tags": [], "advice": "

A number ($x$) squared ($x^2$) is that number times itself ($x^2$ = $x$ x $x$).

\n

A number ($x$) cubed ($x^3$) is that number times itself ties itself ($x^3$ = $x$ x $x$ x $x$).

\n

A square root ($\\sqrt{x}$) of a number$x$, is the number that you have to square in order to get $x$.

\n

A cube root ($\\sqrt[3]{x}$) of a number$x$, is the number that you have to cube in order to get $x$.

\n

Prime numbers are numbers with only two factors - 1 and themself. 

", "rulesets": {}, "parts": [{"displayColumns": 0, "prompt": "

$\\var{a}^2$

", "matrix": ["1", 0, 0, 0], "shuffleChoices": true, "variableReplacements": [], "choices": ["

$\\var{a*a}$

", "

$\\var{a*2}$

", "

$\\var{a*a+1}$

", "

$\\var{a+2}$

"], "variableReplacementStrategy": "originalfirst", "displayType": "radiogroup", "maxMarks": 0, "scripts": {}, "distractors": ["", "", "", ""], "marks": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}, {"displayColumns": 0, "prompt": "

$\\sqrt{\\var{unroot}}$

", "matrix": ["1", 0, 0, 0], "shuffleChoices": true, "variableReplacements": [], "choices": ["

$\\var{b}$

", "

$\\var{b/2}$

", "

$\\var{b*b}$

", "

$\\var{b-(b-1)}$

"], "variableReplacementStrategy": "originalfirst", "displayType": "radiogroup", "maxMarks": 0, "scripts": {}, "distractors": ["", "", "", ""], "marks": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}, {"displayColumns": 0, "prompt": "

$\\var{c}^3$

", "matrix": ["1", 0, 0, 0], "shuffleChoices": true, "variableReplacements": [], "choices": ["

$\\var{c*c*c}$

", "

$\\var{c*3}$

", "

$\\var{c*c}$

", "

$\\var{c+3}$

"], "variableReplacementStrategy": "originalfirst", "displayType": "radiogroup", "maxMarks": 0, "scripts": {}, "distractors": ["", "", "", ""], "marks": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}, {"displayColumns": 0, "prompt": "

$\\sqrt[3]{\\var{uncrt}}$

", "matrix": ["1", 0, 0, 0], "shuffleChoices": true, "variableReplacements": [], "choices": ["

$\\var{d}$

", "

$\\var{d*d}$

", "

$\\var{d/3}$

", "

$\\var{d-3}$

"], "variableReplacementStrategy": "originalfirst", "displayType": "radiogroup", "maxMarks": 0, "scripts": {}, "distractors": ["", "", "", ""], "marks": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}, {"maxAnswers": 0, "displayColumns": 0, "prompt": "

Which of the following are prime numbers?

", "matrix": ["1", "1", 0, 0], "shuffleChoices": true, "variableReplacements": [], "minAnswers": 0, "variableReplacementStrategy": "originalfirst", "displayType": "checkbox", "maxMarks": "2", "scripts": {}, "distractors": ["", "", "", ""], "warningType": "none", "marks": 0, "showCorrectAnswer": true, "choices": ["

$\\var{f}$

", "

$\\var{g}$

", "

$\\var{h}$

", "

$\\var{j}$

"], "type": "m_n_2", "minMarks": 0}], "extensions": [], "statement": "

Answer the following.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"a": {"definition": "random(3..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "a", "description": ""}, "c": {"definition": "random(4..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "c", "description": ""}, "b": {"definition": "random(3..11)", "templateType": "anything", "group": "Ungrouped variables", "name": "b", "description": ""}, "d": {"definition": "random(3..12)", "templateType": "anything", "group": "Ungrouped variables", "name": "d", "description": ""}, "g": {"definition": "random(11,13,17,19,23)", "templateType": "anything", "group": "Ungrouped variables", "name": "g", "description": ""}, "f": {"definition": "random(2,3,5,7,9)", "templateType": "anything", "group": "Ungrouped variables", "name": "f", "description": ""}, "h": {"definition": "random(0,1,4,6,8,9,10,12,14)", "templateType": "anything", "group": "Ungrouped variables", "name": "h", "description": ""}, "j": {"definition": "random(15,16,18,20,21,22,24,25)", "templateType": "anything", "group": "Ungrouped variables", "name": "j", "description": ""}, "unroot": {"definition": "b*b", "templateType": "anything", "group": "Ungrouped variables", "name": "unroot", "description": ""}, "uncrt": {"definition": "d*d*d", "templateType": "anything", "group": "Ungrouped variables", "name": "uncrt", "description": ""}}, "metadata": {"description": "

Simple questions on square numbers, square roots, cube number, cube roots and prime numbers.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Sam Faulds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1027/"}]}]}], "contributors": [{"name": "Sam Faulds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/1027/"}]}