// Numbas version: exam_results_page_options {"name": "Nursing Question 5", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"extensions": [], "preamble": {"js": "", "css": ""}, "variablesTest": {"condition": "", "maxRuns": 100}, "tags": [], "parts": [{"gaps": [{"correctAnswerStyle": "plain", "marks": "2", "scripts": {}, "notationStyles": ["plain", "en", "si-en"], "allowFractions": false, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "minValue": "{ans}", "type": "numberentry", "showFeedbackIcon": false, "maxValue": "{ans}", "correctAnswerFraction": false, "showCorrectAnswer": true}], "stepsPenalty": 0, "marks": 0, "variableReplacements": [], "prompt": "

Your patient's date of birth is $\\var{a1}^{\\text{th}}$ {b1} $\\var{c}$. What is their age on the $\\var{a2}^{\\text{th}}$ {b2} $\\var{d}$?

\n

[[0]] years old

", "steps": [{"marks": 0, "variableReplacements": [], "prompt": "

You need to take into account the following information:

\n", "type": "information", "showFeedbackIcon": true, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "scripts": {}}], "type": "gapfill", "showFeedbackIcon": true, "showCorrectAnswer": true, "variableReplacementStrategy": "originalfirst", "scripts": {}}], "variables": {"a1": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(4..20)", "name": "a1"}, "c": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "1900+c1", "name": "c"}, "b011": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b00 = 11", "name": "b011"}, "b1": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "if(b11,\"January\",\n if(b12,\"February\",\n if(b13, \"March\",\n if(b14, \"April\",\n if(b15, \"May\",\n if(b16, \"June\",\n if(b17,\"July\",\n if(b18,\"August\",\n if(b19,\"September\",\n if(b110,\"October\",\n if(b111,\"November\",\"December\")))))))))))", "name": "b1"}, "b16": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0 = 6", "name": "b16"}, "d1": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0>b00", "name": "d1"}, "b2": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "if(b01,\"January\",\n if(b02,\"February\",\n if(b03, \"March\",\n if(b04, \"April\",\n if(b05, \"May\",\n if(b06, \"June\",\n if(b07,\"July\",\n if(b08,\"August\",\n if(b09,\"September\",\n if(b010,\"October\",\n if(b011,\"November\",\"December\")))))))))))", "name": "b2"}, "c2": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(17,18)", "name": "c2"}, "b13": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0 = 3", "name": "b13"}, "b00": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1..12)", "name": "b00"}, "c1": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(50..99)", "name": "c1"}, "b06": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b00 = 6", "name": "b06"}, "b11": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0 = 1", "name": "b11"}, "d4": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "a1>a2", "name": "d4"}, "ans": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "if(d1,(c2+2000)-(1900+c1)-1,\n if(d2,(c2+2000)-(1900+c1),\n if(d3,\n if(d4,(c2+2000)-(1900+c1)-1,(c2+2000)-(1900+c1)),\"Error\")))", "name": "ans"}, "b12": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0 = 2", "name": "b12"}, "b19": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0 = 9", "name": "b19"}, "d": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "2000+c2", "name": "d"}, "b15": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0 = 5", "name": "b15"}, "a2": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(4..20)", "name": "a2"}, "b07": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b00 = 7", "name": "b07"}, "b08": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b00 = 8", "name": "b08"}, "b14": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0 = 4", "name": "b14"}, "b17": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0 = 7", "name": "b17"}, "b110": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0 = 10", "name": "b110"}, "b09": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b00 = 9", "name": "b09"}, "b01": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b00 = 1", "name": "b01"}, "d3": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0=b00", "name": "d3"}, "b111": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0 = 11", "name": "b111"}, "b0": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "random(1..12)", "name": "b0"}, "b04": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b00 = 4", "name": "b04"}, "b18": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0 = 8", "name": "b18"}, "b010": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b00 = 10", "name": "b010"}, "d2": {"description": "", "group": "Ungrouped variables", "templateType": "anything", "definition": "b0You need to take into account the following information:

\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
Month of birth comes BEFORE month givenMonth of birth comes AFTER month givenMonths are the SAME
Day of birth comes BEFORE day givenYear given - Year of BirthYear given - Year of Birth - 1Year given - Year of Birth
Day of birth comes AFTER day givenYear given - Year of BirthYear given - Year of Birth - 1Year given - Year of Birth - 1
Days are the SAMEYear given - Year of BirthYear given - Year of Birth - 1Year given - Year of Birth
\n

Example: Date given in the question is 17th February 2018

\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
Year of Birth: 1989JanuaryMarchFebruary
16th2018 - 1989 = 29 Years Old2018 - 1989 - 1 = 28 Years Old2018 - 1989 = 29 Years Old
18th2018 - 1989 = 29 Years Old2018 - 1989 - 1 = 28 Years Old2018 - 1989 - 1 = 28 Years Old
17th2018 - 1989 = 29 Years Old2018 - 1989 - 1 = 28 Years Old2018 - 1989 = 29 Years Old (Happy Birthday!)
", "variable_groups": [], "ungrouped_variables": ["a1", "a2", "b0", "b00", "b11", "b12", "b13", "b14", "b15", "b16", "b17", "b18", "b19", "b110", "b111", "b01", "b02", "b03", "b04", "b05", "b06", "b07", "b08", "b09", "b010", "b011", "b1", "b2", "c1", "c2", "d1", "d2", "d3", "d4", "ans", "c", "d"], "metadata": {"description": "

Calculating ages based on dates

", "licence": "Creative Commons Attribution 4.0 International"}, "name": "Nursing Question 5", "rulesets": {}, "statement": "

Age

", "type": "question", "contributors": [{"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}]}]}], "contributors": [{"name": "Mark Hodds", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/510/"}]}