// Numbas version: finer_feedback_settings {"name": "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": "Question 14 Sequences selecting greater than etc", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "

$x$ is a sequence between -2 and 10.

\n

$z$ selects the values from $x$ that are greater than or equal to 7.

\n

$y$ selects the values from $x$ that are greater than or equal to 7 OR less than 0.

\n

$a$ selects the elements of $y$ that are equal to -2. So if $y$ = -2 -1 7 8 9 10 it is the first element that is equal to -2.

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

What is the value of $z$?

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

TRUE

", "

7 8 9 10

", "

0 1 2 3 4 5 6

", "

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": false, "variableReplacements": [], "choices": ["

-2 -1 7 8 9 10

", "

TRUE

", "

7 8 9 10

", "

-2 -1

"], "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": [0, 0, "1", 0], "shuffleChoices": false, "variableReplacements": [], "choices": ["

-2

", "

4

", "

1

", "

TRUE

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