{"assignment":{"_schema_version":2,"course_id":37,"date_created":"2022-06-28T19:00:00+00:00","date_modified":"2022-07-13T19:20:23.243288+00:00","extra_instructor_files":"","extra_starting_files":"","forked_id":null,"forked_version":null,"hidden":false,"id":1060,"instructions":"{\n  \"settings\": {\n    \"readingId\": \"bakery_for_loops_read\"\n  },\n  \"questions\": {\n    \"Loop Components\": {\n      \"type\": \"matching_question\",\n      \"points\": 3,\n      \"body\": \"Identify each of the components of the `for` loop:  \\n![18-1-quiz-loop-parts.png][7]\\n\\n   [7]: https://i.imgur.com/zQDwPr7.png\",\n      \"answers\": [\n        \"For keyword\",\n        \"Iteration Variable\",\n        \"In keyword\",\n        \"Body\",\n        \"List Variable\"\n      ],\n      \"statements\": [\n        \"1\",\n        \"2\",\n        \"3\",\n        \"4\",\n        \"5\",\n        \"6\"\n      ]\n    },\n    \"Colon Usage\": {\n      \"type\": \"short_answer_question\",\n      \"points\": 1,\n      \"body\": \"Type the character used at the end of the first line of a `for` loop.\"\n    },\n    \"Iteration Variable Type\": {\n      \"type\": \"multiple_choice_question\",\n      \"points\": 1,\n      \"body\": \"What is the type of the Iteration Variable in this code?\\n```python\\ngroceries = [\\\"Apples\\\", \\\"Cookies\\\", \\\"Steaks\\\"]\\nfor grocery in groceries:\\n    print(grocery)\\n```\",\n      \"answers\": [\n        \"List\",\n        \"String\",\n        \"Integer\",\n        \"None\"\n      ]\n    },\n    \"Loop Facts\": {\n      \"type\": \"multiple_answers_question\",\n      \"points\": 5,\n      \"body\": \"Mark each of the following statements about `for` loops that are true:\",\n      \"answers\": [\n        \"The body of a <code>for</code> loop will have one statement for each element of the\\niteration list.\",\n        \"<code>for</code> Loops and Functions are basically the same thing\",\n        \"The Iteration Variable will take on each value of the List Variable, one at a time.\",\n        \"<code>for</code> Loops always execute the body four times, which is where they get their\\nname.\",\n        \"Like an <code>if</code> statement and a Function Call, the <code>for</code> Loop might cause the\\nexecution to not follow the order of lines.\"\n      ]\n    },\n    \"Loop Tracing\": {\n      \"type\": \"fill_in_multiple_blanks_question\",\n      \"points\": 11,\n      \"body\": \"Trace the values of this code. If a variable is not yet defined, put an \\\"X\\\" (without quotes). If you need more space,\\nclick the \\\"Hamburger Button\\\" in the top left and right corners of Canvas.\\n```python\\ngrades = [[10, 20]]\\ntotal = 0\\nfor grade in grades:\\n    adjusted = grade + 10\\n    total = total + adjusted\\n```\\n\\nstep | line | grades | grade | adjusted | total  \\n---|---|---|---|---|---  \\n1 | 1 | [[10,20]] | X | X | X  \\n2 | 2 | [[10,20]] | [grade2] | X | [total2]  \\n3 | 3 | [[10,20]] | [grade3] | X | [total3]  \\n4 | 4 | [[10,20]] | [grade4] | 20 | [total4]  \\n5 | [line5] | [[10,20]] | [grade5] | [adjusted5] | [total5]  \\n6 | [line6] | [grades6] | [grade6] | [adjusted6] | [total6]  \\n7 | [line7] | [[10,20]] | [grade7] | [adjusted7] | [total7]  \\n8 | [line8] | [[10,20]] | [grade8] | [adjusted8] | 50\"\n    }\n  }\n}","ip_ranges":"","name":"6A1) For 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":null,"starting_code":"","subordinate":false,"tags":[],"type":"quiz","url":"bakery_for_loops_quiz","version":2},"ip":"216.73.216.157","submission":{"_schema_version":3,"assignment_id":1060,"assignment_version":2,"attempts":0,"code":"","correct":false,"course_id":37,"date_created":"2026-05-20T14:01:41.729058+00:00","date_due":"","date_graded":"","date_locked":"","date_modified":"2026-05-20T14:01:41.729058+00:00","date_started":"","date_submitted":"","endpoint":"","extra_files":"","feedback":"","grading_status":"NotReady","id":2036902,"score":0.0,"submission_status":"Started","time_limit":"","url":"submission_url-82a3e057-c3c5-46b6-82cf-89b78ba6c7cf","user_id":2044668,"user_id__email":"","version":0},"success":true}
