{"assignment":{"_schema_version":2,"course_id":37,"date_created":"2022-06-28T19:00:00+00:00","date_modified":"2023-04-08T18:13:29.727104+00:00","extra_instructor_files":"","extra_starting_files":"","forked_id":null,"forked_version":null,"hidden":false,"id":1130,"instructions":"{\n  \"settings\": {\n    \"readingId\": \"bakery_time_while_read\"\n  },\n  \"questions\": {\n    \"LabelWhile\": {\n      \"type\": \"matching_question\",\n      \"points\": 2.5,\n      \"body\": \"Identify each part of the while loop shown:\\n\\n![https://i.imgur.com/CwzqVmS.png quizGraphics.png](https://i.imgur.com/CwzqVmS.png)\",\n      \"answers\": [\n        \"While keyword\",\n        \"Conditional\",\n        \"Colon\",\n        \"Indentation\",\n        \"Body\"\n      ],\n      \"statements\": [\n        \"1\",\n        \"2\",\n        \"3\",\n        \"4\",\n        \"5\"\n      ]\n    },\n    \"WhileVsFor\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"Syntactically, `while` loops look just like `for` loops. They both have a keyword, a colon, and a list to iterate over.\"\n    },\n    \"WhileExecutesOnce\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"A While loop will always execute at least once.\"\n    },\n    \"LoopEndDecrement\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"The program below will NOT loop forever.\\n```python\\ncount = 10\\nwhile count >= 0:\\n    count = count - 1\\nprint(count)\\n```\"\n    },\n    \"LoopEndIncrement\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"The program below will NOT loop forever.\\n```python\\ncount = 0\\nwhile count > 0:\\n    count = count + 1\\nprint(count)\\n```\"\n    },\n    \"LoopEndMidway\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"The program below will NOT loop forever.\\n```python\\nalpha = 'dog'\\nwhile alpha == 'dog':\\n    alpha = 'cat'\\n    print(alpha)\\n    alpha = 'dog'\\nprint(alpha)\\n```\"\n    },\n    \"LoopForever\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"The program below will NOT loop forever.\\n```python\\nwhile True:\\n    print(\\\"Loop again\\\")\\n```\"\n    },\n    \"LoopConvenience\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"`while` loops are more common in Python than `for` loops because they are safer.\"\n    },\n    \"LoopLength\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"A `while` loop will execute once for each expression in the conditional.\"\n    },\n    \"ControlStructureBodies\": {\n      \"type\": \"multiple_answers_question\",\n      \"points\": 3.5,\n      \"body\": \"Which of the following have a body?\",\n      \"answers\": [\n        \"<code>while</code> loop\",\n        \"<code>for</code> loop\",\n        \"Function definition\",\n        \"Function call\",\n        \"<code>if</code> statement.\",\n        \"Dictionary access\"\n      ]\n    }\n  }\n}","ip_ranges":"","name":"10A1) While Loops","on_change":"","on_eval":"","on_run":"","owner_id":1,"owner_id__email":"acbart@udel.edu","points":1,"public":true,"reviewed":false,"sample_submissions":[],"settings":"","starting_code":"","subordinate":false,"tags":[],"type":"quiz","url":"bakery_time_while_quiz","version":3},"ip":"216.73.216.157","submission":{"_schema_version":3,"assignment_id":1130,"assignment_version":3,"attempts":0,"code":"","correct":false,"course_id":37,"date_created":"2026-05-20T14:01:42.629599+00:00","date_due":"","date_graded":"","date_locked":"","date_modified":"2026-05-20T14:01:42.629599+00:00","date_started":"","date_submitted":"","endpoint":"","extra_files":"","feedback":"","grading_status":"NotReady","id":2036904,"score":0.0,"submission_status":"Started","time_limit":"","url":"submission_url-fdf05814-f8e8-41bd-a9a3-0389c2af1995","user_id":2044668,"user_id__email":"","version":0},"success":true}
