// Numbas version: finer_feedback_settings {"name": "Question 12 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": [], "name": "Question 12 TRUE/FALSE", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "
a) The line
\nz = x & !y\n
tells us that $z$ is true if $x$ is true and $y$ is false.
\nb) It follows from part (a) that $a$ is true if $z$ is false and $a$ is false if $z$ is true.
", "rulesets": {}, "parts": [{"displayColumns": 0, "prompt": "What is the value of $z$?
", "matrix": ["1", "1"], "shuffleChoices": false, "variableReplacements": [], "choices": ["TRUE
FALSE
What is the value of $a$?
", "matrix": [0, "1"], "shuffleChoices": false, "variableReplacements": [], "choices": ["TRUE
FALSE
> x = TRUE", "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/"}]}
> y = FALSE
> z = x & !y
> a = !z