// Numbas version: finer_feedback_settings {"name": "Question 13 TRUE/FALSE", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["a"], "name": "Question 13 TRUE/FALSE", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "
We are given that x = TRUE, y = FALSE.
The line
x = (y|!y) & x
\nsays, x is true if both of the following are true: y is either true or false, and x is true.
\nThen,
\nz = x
sets $z$ to be equal to $x$, hence its earlier value is irrelevant.
What is the value of $z$?
", "matrix": [0, 0, "1"], "shuffleChoices": false, "variableReplacements": [], "choices": ["{a}
", "FALSE
TRUE
> x = TRUE", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"a": {"definition": "random(-20..20#1)", "templateType": "randrange", "group": "Ungrouped variables", "name": "a", "description": ""}}, "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/"}]}
> y = FALSE
> z = {a}
> x = (y|!y) & x
> z = x