{"assignment":{"_schema_version":2,"course_id":37,"date_created":"2022-06-28T19:00:00+00:00","date_modified":"2022-07-12T14:55:24.172997+00:00","extra_instructor_files":"","extra_starting_files":"","forked_id":null,"forked_version":null,"hidden":false,"id":1024,"instructions":"{\n  \"settings\": {\n    \"readingId\": \"bakery_if_nesting_read\"\n  },\n  \"questions\": {\n    \"EquivalentIfs\": {\n      \"type\": \"multiple_answers_question\",\n      \"points\": 1,\n      \"body\": \"Select the two snippets of code that are equivalent.\",\n      \"answers\": [\n        \"<div class=\\\"codehilite\\\" style=\\\"background: #f8f8f8;\\\"><pre style=\\\"line-height: 125%;\\\"><span></span><span style=\\\"color: #008000; font-weight: bold;\\\">if</span> is_on_fire():\\n    <span style=\\\"color: #008000; font-weight: bold;\\\">pass</span>\\n<span style=\\\"color: #008000; font-weight: bold;\\\">if</span> door_is_open():\\n    <span style=\\\"color: #008000; font-weight: bold;\\\">pass</span>\\n<span style=\\\"color: #008000; font-weight: bold;\\\">else</span>:\\n    <span style=\\\"color: #008000; font-weight: bold;\\\">pass</span>\\n</pre></div>\",\n        \"<div class=\\\"codehilite\\\" style=\\\"background: #f8f8f8;\\\"><pre style=\\\"line-height: 125%;\\\"><span></span><span style=\\\"color: #008000; font-weight: bold;\\\">if</span> is_on_fire():\\n    <span style=\\\"color: #008000; font-weight: bold;\\\">pass</span>\\n<span style=\\\"color: #008000; font-weight: bold;\\\">elif</span> door_is_open():\\n    <span style=\\\"color: #008000; font-weight: bold;\\\">pass</span>\\n<span style=\\\"color: #008000; font-weight: bold;\\\">else</span>:\\n    <span style=\\\"color: #008000; font-weight: bold;\\\">pass</span>\\n</pre></div>\",\n        \"<div class=\\\"codehilite\\\" style=\\\"background: #f8f8f8;\\\"><pre style=\\\"line-height: 125%;\\\"><span></span><span style=\\\"color: #008000; font-weight: bold;\\\">if</span> is_on_fire():\\n    <span style=\\\"color: #008000; font-weight: bold;\\\">pass</span>\\n<span style=\\\"color: #008000; font-weight: bold;\\\">else</span>:\\n    <span style=\\\"color: #008000; font-weight: bold;\\\">if</span> door_is_open():\\n        <span style=\\\"color: #008000; font-weight: bold;\\\">pass</span>\\n    <span style=\\\"color: #008000; font-weight: bold;\\\">else</span>:\\n        <span style=\\\"color: #008000; font-weight: bold;\\\">pass</span>\\n</pre></div>\",\n        \"<div class=\\\"codehilite\\\" style=\\\"background: #f8f8f8;\\\"><pre style=\\\"line-height: 125%;\\\"><span></span><span style=\\\"color: #008000; font-weight: bold;\\\">if</span> is_on_fire():\\n    <span style=\\\"color: #008000; font-weight: bold;\\\">pass</span>\\n<span style=\\\"color: #008000; font-weight: bold;\\\">else</span> <span style=\\\"color: #008000; font-weight: bold;\\\">if</span> door_is_open():\\n    <span style=\\\"color: #008000; font-weight: bold;\\\">pass</span>\\n<span style=\\\"color: #008000; font-weight: bold;\\\">else</span>:\\n    <span style=\\\"color: #008000; font-weight: bold;\\\">pass</span>\\n</pre></div>\"\n      ]\n    },\n    \"NestedWhitespace\": {\n      \"type\": \"short_answer_question\",\n      \"points\": 1,\n      \"body\": \"If an `if` statement is nested inside another `if` statement, how many spaces will the body of the inner `if` statement\\nhave?\"\n    },\n    \"IfInFunctions\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"You can nest `if` statements inside of other `if` statements, but not functions.\"\n    },\n    \"OptionalElseElif\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"Every `if` statement must be followed by either an `else` or an `elif`.\"\n    },\n    \"EqualElif\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"The `elif` is equivalent to an `else` with an `if` statement nested inside it.\"\n    }\n  }\n}","ip_ranges":"","name":"3B1) Nested If Statements","on_change":"","on_eval":"","on_run":"","owner_id":1,"owner_id__email":"acbart@udel.edu","points":1,"public":true,"reviewed":false,"sample_submissions":[],"settings":null,"starting_code":"","subordinate":false,"tags":[],"type":"quiz","url":"bakery_if_nesting_quiz","version":1},"ip":"216.73.216.157","submission":{"_schema_version":3,"assignment_id":1024,"assignment_version":1,"attempts":0,"code":"","correct":false,"course_id":37,"date_created":"2026-05-20T16:04:51.431884+00:00","date_due":"","date_graded":"","date_locked":"","date_modified":"2026-05-20T16:04:51.431884+00:00","date_started":"","date_submitted":"","endpoint":"","extra_files":"","feedback":"","grading_status":"NotReady","id":2037050,"score":0.0,"submission_status":"Started","time_limit":"","url":"submission_url-ae1ce432-c9d6-4be7-8550-3552ac278f1c","user_id":2044700,"user_id__email":"","version":0},"success":true}
