// Numbas version: exam_results_page_options {"name": "Predicate Logic", "metadata": {"description": "", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "duration": 0, "percentPass": 0, "showQuestionGroupNames": false, "showstudentname": true, "question_groups": [{"name": "Group", "pickingStrategy": "all-ordered", "pickQuestions": 1, "questionNames": ["", ""], "questions": [{"name": "Predicates ", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Bill Foster", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/6/"}], "functions": {}, "ungrouped_variables": ["choices", "logic_exp", "t", "mm0", "mm1", "mm2"], "tags": ["logic", "logical expressions", "propositions"], "advice": "", "rulesets": {}, "parts": [{"maxAnswers": 0, "prompt": "

Let $p$ and $q$ denote respectively the propositions '{choices[0][0]}' and '{choices[0][1]}'.

", "matrix": "mm0", "shuffleAnswers": true, "minAnswers": 0, "marks": 0, "variableReplacements": [], "answers": ["{logic_exp[0]}", "{logic_exp[1]}", "{logic_exp[2]}", "{logic_exp[3]}", "{logic_exp[4]}", "{logic_exp[5]}", "{logic_exp[6]}", "{logic_exp[7]}", "{logic_exp[8]}"], "choices": ["{choices[0][2]}", "{choices[0][3]}", "{choices[0][4]}", "{choices[0][5]}"], "variableReplacementStrategy": "originalfirst", "displayType": "radiogroup", "maxMarks": 0, "scripts": {}, "warningType": "none", "showCorrectAnswer": true, "type": "m_n_x", "shuffleChoices": true, "minMarks": 0, "layout": {"type": "all", "expression": ""}}, {"maxAnswers": 0, "prompt": "

Let $p$ and $q$ denote respectively the propositions '{choices[1][0]}' and '{choices[1][1]}'.

", "matrix": "mm1", "shuffleAnswers": true, "minAnswers": 0, "marks": 0, "variableReplacements": [], "answers": ["{logic_exp[0]}", "{logic_exp[1]}", "{logic_exp[2]}", "{logic_exp[3]}", "{logic_exp[4]}", "{logic_exp[5]}", "{logic_exp[6]}", "{logic_exp[7]}", "{logic_exp[8]}"], "choices": ["{choices[1][2]}", "{choices[1][3]}", "{choices[1][4]}", "{choices[1][5]}"], "variableReplacementStrategy": "originalfirst", "displayType": "radiogroup", "maxMarks": 0, "scripts": {}, "warningType": "none", "showCorrectAnswer": true, "type": "m_n_x", "shuffleChoices": true, "minMarks": 0, "layout": {"type": "all", "expression": ""}}, {"maxAnswers": 0, "prompt": "

Let $p$ and $q$ denote respectively the propositions '{choices[2][0]}' and '{choices[2][1]}'.

", "matrix": "mm2", "shuffleAnswers": true, "minAnswers": 0, "marks": 0, "variableReplacements": [], "answers": ["{logic_exp[0]}", "{logic_exp[1]}", "{logic_exp[2]}", "{logic_exp[3]}", "{logic_exp[4]}", "{logic_exp[5]}", "{logic_exp[6]}", "{logic_exp[7]}", "{logic_exp[8]}"], "choices": ["{choices[2][2]}", "{choices[2][3]}", "{choices[2][4]}", "{choices[2][5]}"], "variableReplacementStrategy": "originalfirst", "displayType": "radiogroup", "maxMarks": 0, "scripts": {}, "warningType": "none", "showCorrectAnswer": true, "type": "m_n_x", "shuffleChoices": true, "minMarks": 0, "layout": {"type": "all", "expression": ""}}], "statement": "

Choose the correct logical expression  for the following English sentences.

", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "preamble": {"css": "", "js": ""}, "variables": {"mm1": {"definition": "map(map(if(choices[1][6][y]=x,1,0),x,0..8),y,0..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "mm1", "description": ""}, "mm0": {"definition": "map(map(if(choices[0][6][y]=x,1,0),x,0..8),y,0..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "mm0", "description": ""}, "mm2": {"definition": "map(map(if(choices[2][6][y]=x,1,0),x,0..8),y,0..3)", "templateType": "anything", "group": "Ungrouped variables", "name": "mm2", "description": ""}, "t": {"definition": "random(0,1,2)", "templateType": "anything", "group": "Ungrouped variables", "name": "t", "description": ""}, "choices": {"definition": "[['It is snowing','I will go skiing',\n 'As it is not snowing I will go skiing.',\n 'It will snow if I don\\'t go skiing.',\n 'I will go skiing if it is snowing.',\n 'It is snowing and I may or may not go skiing.',\n [2,8,4,6,0,1,3,7,5]\n ],\n ['I am working at my studies', 'I am in the library',\n 'I am working at my studies in the library.',\n 'If I use the library then I am working at my studies.',\n 'If I am working at my studies then I am not in the library.',\n 'If I am in the library then I may not be working at my studies.',\n [1,7,0,6,8,2,3,4,5]\n ],\n ['It is sunny','I will carry an umbrella',\n 'If it is not sunny then I will carry an umbrella.',\n 'I carry an umbrella even if it is sunny.',\n 'If it is sunny then I may carry an umbrella.',\n 'If I carry an umbrella then the day always turns out to be sunny!',\n [8,4,6,7,0,1,2,5,3]\n \n]\n \n]", "templateType": "anything", "group": "Ungrouped variables", "name": "choices", "description": ""}, "logic_exp": {"definition": "['$\\\\neg p \\\\lor \\\\neg q$', \n '$p \\\\land q$', \n '$\\\\neg p \\\\land q$',\n '$p \\\\land \\\\neg q$',\n '$p \\\\to q$',\n '$\\\\neg p \\\\land \\\\neg q$',\n '$(p \\\\lor \\\\neg q) \\\\land p$',\n '$q \\\\to p$',\n '$\\\\neg p \\\\to q$'\n ]", "templateType": "anything", "group": "Ungrouped variables", "name": "logic_exp", "description": ""}}, "metadata": {"notes": "", "description": "

Given sentences involving propositions translate into logical expressions.

", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}]}, {"name": "Quantifiers 2-", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}], "tags": ["logic", "quantifiers", "statements"], "metadata": {"description": "

English sentences which are propositions are given and for each the appropriate proposition  involving quantifiers is to be chosen. 

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

In a seminar group, for group members $m$ and $n$, we let $P(m,n)$ to be the predicate m knows the name of n .

\n

For each English sentence choose the corresponding proposition involving quantifiers.

\n

Note that you will lose one mark for every incorrect choice. However, the minimum mark is $0$.

", "advice": "", "rulesets": {}, "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"select": {"name": "select", "group": "Part 0", "definition": "shuffle(list(0..length(all)-1))[0..4]", "description": "", "templateType": "anything", "can_override": false}, "select2": {"name": "select2", "group": "Part 2", "definition": "list(set(0..length(all)-1)-(set(select) or set(select1)))", "description": "", "templateType": "anything", "can_override": false}, "select1": {"name": "select1", "group": "Part 1", "definition": "list(set(0..length(all)-1)-set(select))[0..4]", "description": "", "templateType": "anything", "can_override": false}, "marks_matrix": {"name": "marks_matrix", "group": "Ungrouped variables", "definition": "matrix(list(2*id(4)-matrix(repeat(repeat(1,4),4))))", "description": "", "templateType": "anything", "can_override": false}, "all": {"name": "all", "group": "Ungrouped variables", "definition": "[['There is someone not known to the rest.',\n '$\\\\exists m \\\\forall n (\\\\neg P(n,m))$'],\n ['Every group member doesn\\'t know the name of at least one other.',\n '$\\\\forall m \\\\exists n (\\\\neg P(m,n))$'],\n ['Nobody knows the name of anybody else.',\n '$\\\\forall m \\\\forall n (\\\\neg P(m,n))$'],\n ['There is a pair of group members who do not know each other\\'s name.',\n '$\\\\exists m \\\\exists n (\\\\neg P(m,n) \\\\land \\\\neg P(n,m)$'],\n ['There is someone who knows everyone\\'s name.',\n '$\\\\exists m \\\\forall n (P(m,n))$'],\n ['There is at least one person who knows the name of somebody else.',\n '$\\\\exists m \\\\exists n (P(n,m))$'],\n ['There is someone who doesn\\'t know the name of at least one other group member.',\n '$\\\\exists m \\\\exists n (\\\\neg P(n,m))$'],\n ['Someone\\'s name is known to everyone else.',\n '$\\\\exists m \\\\forall n ( P(n,m))$'],\n ['There is at least one person who does not know the name of anybody else.',\n '$\\\\exists m \\\\forall n (\\\\neg P(m,n))$'],\n ['Everybody knows at least one other person\\'s name.',\n '$\\\\forall m \\\\exists n (P(m,n))$'],\n ['Any member of the group has at least one person who doesn\\'t know their name.',\n '$\\\\forall n \\\\exists m (\\\\neg P(m,n))$'],\n ['There are at least two people who know each other\\'s name.',\n '$\\\\exists n \\\\exists m (P(n,m) \\\\land P(m,n))$']\n \n ]", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["all", "marks_matrix"], "variable_groups": [{"name": "Part 0", "variables": ["select"]}, {"name": "Part 1", "variables": ["select1"]}, {"name": "Part 2", "variables": ["select2"]}], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The numbers heading the columns refer to the following:

\n

1.  {all[select[0]][1]}

\n

2.  {all[select[1]][1]}

\n

3.  {all[select[2]][1]}

\n

4.  {all[select[3]][1]}

", "minMarks": 0, "maxMarks": 0, "minAnswers": "4", "maxAnswers": "4", "shuffleChoices": true, "shuffleAnswers": false, "displayType": "radiogroup", "warningType": "warn", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["{all[select[0]][0]}", "{all[select[1]][0]}", "{all[select[2]][0]}", "{all[select[3]][0]}"], "matrix": "marks_matrix", "layout": {"type": "all", "expression": ""}, "answers": ["

1

", "

2

", "

3

", "

4

"]}, {"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The numbers heading the columns refer to the following:

\n

1.  {all[select1[0]][1]}

\n

2.  {all[select1[1]][1]}

\n

3.  {all[select1[2]][1]}

\n

4.  {all[select1[3]][1]}

", "minMarks": 0, "maxMarks": 0, "minAnswers": "4", "maxAnswers": "4", "shuffleChoices": true, "shuffleAnswers": false, "displayType": "radiogroup", "warningType": "warn", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["{all[select1[0]][0]}", "{all[select1[1]][0]}", "{all[select1[2]][0]}", "{all[select1[3]][0]}"], "matrix": "marks_matrix", "layout": {"type": "all", "expression": ""}, "answers": ["

1

", "

2

", "

3

", "

4

"]}, {"type": "m_n_x", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

The numbers heading the columns refer to the following:

\n

1.  {all[select2[0]][1]}

\n

2.  {all[select2[1]][1]}

\n

3.  {all[select2[2]][1]}

\n

4.  {all[select2[3]][1]}

", "minMarks": 0, "maxMarks": 0, "minAnswers": "4", "maxAnswers": "4", "shuffleChoices": true, "shuffleAnswers": false, "displayType": "radiogroup", "warningType": "warn", "showCellAnswerState": true, "markingMethod": "sum ticked cells", "choices": ["{all[select2[0]][0]}", "{all[select2[1]][0]}", "{all[select2[2]][0]}", "{all[select2[3]][0]}"], "matrix": "marks_matrix", "layout": {"type": "all", "expression": ""}, "answers": ["

1

", "

2

", "

3

", "

4

"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always"}]}], "navigation": {"allowregen": true, "reverse": true, "browse": true, "allowsteps": true, "showfrontpage": true, "showresultspage": "oncompletion", "navigatemode": "sequence", "onleave": {"action": "none", "message": ""}, "preventleave": true, "startpassword": ""}, "timing": {"allowPause": true, "timeout": {"action": "none", "message": ""}, "timedwarning": {"action": "none", "message": ""}}, "feedback": {"showactualmark": true, "showtotalmark": true, "showanswerstate": true, "allowrevealanswer": true, "advicethreshold": 0, "intro": "", "reviewshowscore": true, "reviewshowfeedback": true, "reviewshowexpectedanswer": true, "reviewshowadvice": true, "feedbackmessages": []}, "contributors": [{"name": "Alexander Corner", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/5328/"}], "extensions": [], "custom_part_types": [], "resources": []}