// Numbas version: exam_results_page_options {"name": "Amy's copy of Question 14 Sequences selecting greater than etc", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": [], "name": "Amy's copy of Question 14 Sequences selecting greater than etc", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

$x$ is a sequence between -5 and 5.

\n

$z$ selects the values from $x$ that are less than -2.

\n

$y$ selects the values from $x$ that are greater than or equal to 3 OR less than -2.

\n

$a$ selects the indices of the value in $z$ that is equal to -3. So if $z$ = -5 -4 -3 it is the third indices that is equal to -3.

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

What is the value of $z$?

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

TRUE

", "

-5 -4 -3

", "

-5 -4 -3 -2

", "

FALSE TRUE TRUE

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

What is the value of $y$?

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

-5 -4 -3 3 4 5

", "

TRUE

", "

3 4 5

", "

-5 -4 -3

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

What is the value of $a$?

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

3

", "

-5 -4 -3

", "

-3

", "

TRUE

"], "variableReplacementStrategy": "originalfirst", "maxMarks": "1", "distractors": ["", "", "", ""], "showCorrectAnswer": true, "scripts": {}, "marks": 0, "type": "1_n_2", "displayType": "radiogroup", "minMarks": 0}], "extensions": [], "statement": "
> x = seq(-5, 5)
> z = x[(x < -2) ]
> y = x[(x >= 3) | x < -2]
> a = which(z==-3)
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {}, "metadata": {"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/"}]}