{"assignment":{"_schema_version":2,"course_id":37,"date_created":"2022-06-28T19:00:00+00:00","date_modified":"2023-04-08T18:14:11.093826+00:00","extra_instructor_files":"","extra_starting_files":"","forked_id":null,"forked_version":null,"hidden":false,"id":1165,"instructions":"{\n  \"settings\": {\n    \"readingId\": \"bakery_time_while_patterns_read\"\n  },\n  \"questions\": {\n    \"InputLimit\": {\n      \"type\": \"multiple_choice_question\",\n      \"points\": 1,\n      \"body\": \"How many times does the loop body below execute?\\n```python\\ncommand = \\\"\\\"\\nwords = []\\nwhile command != \\\"quit\\\":\\n    command = input(\\\"Type a word:\\\")\\n    words.append(command)\\nprint(words)\\n```\",\n      \"answers\": [\n        \"None\",\n        \"At least once\",\n        \"At least twice\",\n        \"No more than 10 times\"\n      ]\n    },\n    \"Linear Decay\": {\n      \"type\": \"short_answer_question\",\n      \"points\": 1,\n      \"body\": \"How many times will the code below print? If the loop executes infinitely, then enter -1 instead.\\n\\n```python\\ncounter = 500\\nwhile counter > 1:\\n    counter = counter - 2\\n    print(counter)\\n```\"\n    },\n    \"Logarithmic Decay\": {\n      \"type\": \"short_answer_question\",\n      \"points\": 1,\n      \"body\": \"How many times will the code below print? If the loop executes infinitely, then enter -1 instead.\\n\\n```python\\ncounter = 500\\nwhile counter > 1:\\n    counter = counter // 2\\n    print(counter)\\n```\"\n    },\n    \"Define Patterns\": {\n      \"type\": \"matching_question\",\n      \"points\": 1,\n      \"body\": \"Match each description to the appropriate pattern.\",\n      \"answers\": [\n        \"Numeric While\",\n        \"Random Looping\",\n        \"Read-Evaluate-Print-Loop\",\n        \"User Input Loop\",\n        \"Main Game/Server Loop\",\n        \"While Map Loop\",\n        \"Reverse Dataclass Loop\"\n      ],\n      \"statements\": [\n        \"An infinite loop used to make a program continue indefinitely.\",\n        \"Satisfying some complicated constraint by trying many different numbers over and over again.\",\n        \"Iterating over numbers, usually in a non-linear fashion.\",\n        \"Repeatedly getting text from the user in order until the input is correct.\",\n        \"Repeatedly getting text from the user in order to execute commands based on what they enter.\"\n      ]\n    }\n  }\n}","ip_ranges":"","name":"10A2) While Loop Patterns","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_patterns_quiz","version":2},"ip":"216.73.216.157","submission":{"_schema_version":3,"assignment_id":1165,"assignment_version":2,"attempts":0,"code":"","correct":false,"course_id":37,"date_created":"2026-05-20T14:01:56.165167+00:00","date_due":"","date_graded":"","date_locked":"","date_modified":"2026-05-20T14:01:56.165167+00:00","date_started":"","date_submitted":"","endpoint":"","extra_files":"","feedback":"","grading_status":"NotReady","id":2036934,"score":0.0,"submission_status":"Started","time_limit":"","url":"submission_url-befc2f44-fcfe-46bf-b8f0-103ef32d1cb8","user_id":2044668,"user_id__email":"","version":0},"success":true}
