// 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$.

\n

For 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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
$p$$q$$\\sim p$$\\sim q$$p \\land q$$\\sim(p\\land q)$$\\sim p \\;  \\lor \\sim q$$\\sim(p \\land q)\\longleftrightarrow \\; \\sim p \\; \\lor \\sim q$ 
VV[[0]][[4]][[8]][[12]][[16]][[20]]
VF\n

[[1]]

\n
[[5]][[9]][[13]][[17]][[21]]
FV[[2]][[6]][[10]][[14]][[18]][[22]]
FF[[3]][[7]][[11]][[15]]\n

[[19]]

\n
\n

[[23]]

\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$ 

\n

Ingrese 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/"}]}