// Numbas version: finer_feedback_settings {"name": "Question 9 calculations with sequences", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": [], "name": "Question 9 calculations with sequences", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "
a) Because $z=x/y$ you divide each component of the $x$ vector by the corresponding component of the $y$ vector in order to get $z$.
\nb) $a=z/z$ so you divide each component of $z$ by itself.
", "rulesets": {}, "parts": [{"prompt": "What is the value of $z$?
", "matrix": ["0", 0, 0, "1"], "shuffleChoices": false, "scripts": {}, "choices": ["1 10 100 1000
", "1 5 10 1000
", "1 1 1 1
", "1 2 10 10
"], "marks": 0, "displayType": "radiogroup", "maxMarks": "1", "distractors": ["", "", "", ""], "displayColumns": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}, {"prompt": "What is the value of $a$?
", "matrix": [0, "1", 0, 0], "shuffleChoices": false, "scripts": {}, "choices": ["1 2 10 10
", "1 1 1 1
", "1 5 10 100
", "1 2 10 100
"], "marks": 0, "displayType": "radiogroup", "maxMarks": 0, "distractors": ["", "", "", ""], "displayColumns": 0, "showCorrectAnswer": true, "type": "1_n_2", "minMarks": 0}], "statement": "> x = c(1,10,100,1000)", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {}, "metadata": {"notes": "", "description": "", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Amy Chadwick", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/505/"}]}]}], "contributors": [{"name": "Amy Chadwick", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/505/"}]}
> y = c(1,5,10,100)
> z = x/y
> a = z/z