// Numbas version: finer_feedback_settings
{"name": "Ejercicio de tablas de verdad - Ley de De Morgan", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"preamble": {"js": "", "css": ""}, "advice": "", "variablesTest": {"condition": "", "maxRuns": "150"}, "metadata": {"description": "
Create a truth table for a logical expression of the form $a \\operatorname{op} b$ where $a, \\;b$ can be the Boolean variables $p,\\;q,\\;\\neg p,\\;\\neg q$ and $\\operatorname{op}$ one of $\\lor,\\;\\land,\\;\\to$.
\nFor example $\\neg q \\to \\neg p$.
", "licence": "Creative Commons Attribution 4.0 International"}, "variable_groups": [{"name": "Lists of symbols", "variables": ["logic_symbol_list", "latex_symbol_list", "s"]}, {"name": "First Bracket", "variables": []}, {"name": "Second Bracket", "variables": []}, {"name": "Truth values", "variables": ["q", "p", "disp", "disq"]}], "parts": [{"type": "gapfill", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "prompt": "Complete la siguiente tabla de verdad:
\n\n\n\n$p$ | \n$q$ | \n$\\sim p$ | \n$\\sim q$ | \n$p \\land q$ | \n$\\sim(p\\land q)$ | \n$\\sim p \\; \\lor \\sim q$ | \n$\\sim(p \\land q)\\longleftrightarrow \\; \\sim p \\; \\lor \\sim q$ | \n
\n\nV | \nV | \n[[0]] | \n[[4]] | \n[[8]] | \n[[12]] | \n[[16]] | \n[[20]] | \n
\n\nV | \nF | \n\n [[1]] \n | \n[[5]] | \n[[9]] | \n[[13]] | \n[[17]] | \n[[21]] | \n
\n\nF | \nV | \n[[2]] | \n[[6]] | \n[[10]] | \n[[14]] | \n[[18]] | \n[[22]] | \n
\n\nF | \nF | \n[[3]] | \n[[7]] | \n[[11]] | \n[[15]] | \n\n [[19]] \n | \n\n [[23]] \n | \n
\n\n
", "unitTests": [], "customMarkingAlgorithm": "", "marks": 0, "sortAnswers": false, "variableReplacementStrategy": "originalfirst", "gaps": [{"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "F", "marks": 1, "answer": "F", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "F", "marks": 1, "answer": "F", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "F", "marks": 1, "answer": "F", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "F", "marks": 1, "answer": "F", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "F", "marks": 1, "answer": "F", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "F", "marks": 1, "answer": "F", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}, {"type": "patternmatch", "showCorrectAnswer": true, "showFeedbackIcon": true, "scripts": {}, "variableReplacements": [], "extendBaseMarkingAlgorithm": true, "unitTests": [], "customMarkingAlgorithm": "", "displayAnswer": "V", "marks": 1, "answer": "V", "variableReplacementStrategy": "originalfirst", "matchMode": "regex"}]}], "extensions": [], "ungrouped_variables": [], "name": "Ejercicio de tablas de verdad - Ley de De Morgan", "variables": {"s": {"description": "", "name": "s", "templateType": "anything", "group": "Lists of symbols", "definition": "repeat(random(0..3),4)"}, "p": {"description": "", "name": "p", "templateType": "anything", "group": "Truth values", "definition": "[true,true,false,false]"}, "disq": {"description": "", "name": "disq", "templateType": "anything", "group": "Truth values", "definition": "bool_to_label(q)"}, "disp": {"description": "", "name": "disp", "templateType": "anything", "group": "Truth values", "definition": "bool_to_label(p)"}, "latex_symbol_list": {"description": "", "name": "latex_symbol_list", "templateType": "anything", "group": "Lists of symbols", "definition": "[\"p\",\"q\",\"\\\\neg p\",\"\\\\neg q\"]"}, "q": {"description": "", "name": "q", "templateType": "anything", "group": "Truth values", "definition": "[true,false,true,false]"}, "logic_symbol_list": {"description": "", "name": "logic_symbol_list", "templateType": "anything", "group": "Lists of symbols", "definition": "[\"p\",\"q\",\"not p\",\"not q\"]"}}, "tags": [], "functions": {"convch": {"type": "string", "definition": "switch(ch=\"\\\\neg p\",\"not p[t]\",ch=\"\\\\neg q\",\"not q[t]\",ch=\"p\",\"p[t]\",\"q[t]\")", "parameters": [["ch", "string"]], "language": "jme"}, "bool_to_label": {"type": "number", "definition": "map(if(l[x],'T','F'),x,0..length(l)-1)", "parameters": [["l", "list"]], "language": "jme"}, "evaluate": {"type": "number", "definition": "return scope.evaluate(expr);", "parameters": [["expr", "string"], ["dependencies", "list"]], "language": "javascript"}, "conv": {"type": "string", "definition": "switch(op=\"\\\\land\",\"and\",op=\"\\\\lor\",\"or\",\"implies\")", "parameters": [["op", "string"]], "language": "jme"}}, "rulesets": {}, "statement": "Completa la siguiente tabla de verdad para demostrar la ley de De Morgan
\n$\\sim(p \\land q)\\Longleftrightarrow \\; \\sim p \\; \\lor \\sim q$
\nIngrese V si es verdadero, en otro caso ingrese F.
", "type": "question", "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Ricardo Monge", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/471/"}]}]}], "contributors": [{"name": "Julie Crowley", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/113/"}, {"name": "Ricardo Monge", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/471/"}]}