{"assignment":{"_schema_version":2,"course_id":37,"date_created":"2022-06-28T19:00:00+00:00","date_modified":"2022-07-12T14:55:23.561251+00:00","extra_instructor_files":"","extra_starting_files":"","forked_id":null,"forked_version":null,"hidden":false,"id":1008,"instructions":"{\n  \"settings\": {\n    \"readingId\": \"bakery_functions_flow_read\"\n  },\n  \"questions\": {\n    \"FlowReturn\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"You can use the `return` statement to return a variable from a function.\"\n    },\n    \"FlowParameters\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"Values enter functions as arguments when the function is called, and then the arguments' values are assigned to\\nparameters when the function's body begins executing.\"\n    },\n    \"FlowPrint\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"The `print` function is necessary to call a function.\"\n    },\n    \"FlowShare\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"The two functions below share a variable named `score`:\\n```python\\ndef increase(score: int) -> int:\\n    return score+1\\ndef decrease(score: int) -> int:\\n    return score-1\\n```\"\n    },\n    \"FlowBetween\": {\n      \"type\": \"multiple_answers_question\",\n      \"points\": 3,\n      \"body\": \"Given the program below,\\n```python\\nname = input(\\\"What is your name?\\\")\\ndef fix_capitalization(name: str) -> str:\\n    return name.title().strip()\\ndef make_message(name: str):\\n    return \\\"Hello\\\" + name + \\\"how are you?\\\"\\n```\\n\\nWhich of the following lines of code will have the data flow correctly through both functions in order to produce the\\nmessage with the fixed capitalization?\",\n      \"answers\": [\n        \"<div class=\\\"codehilite\\\" style=\\\"background: #f8f8f8;\\\">\\n<pre style=\\\"line-height: 125%;\\\">fix_capitalization(name)\\nmake_message(name)\\n</pre>\\n</div>\",\n        \"<div class=\\\"codehilite\\\" style=\\\"background: #f8f8f8;\\\">\\n<pre style=\\\"line-height: 125%;\\\">make_message(fix_capitalization(name))\\n</pre>\\n</div>\",\n        \"<div class=\\\"codehilite\\\" style=\\\"background: #f8f8f8;\\\">\\n<pre style=\\\"line-height: 125%;\\\">fix_capitalization()\\nmake_message()\\n</pre>\\n</div>\",\n        \"<div class=\\\"codehilite\\\" style=\\\"background: #f8f8f8;\\\">\\n<pre style=\\\"line-height: 125%;\\\"><span style=\\\"color: #008000; font-weight: bold;\\\">print</span>(fix_capitalization(name))\\n<span style=\\\"color: #008000; font-weight: bold;\\\">print</span>(make_message(name))\\n</pre>\\n</div>\",\n        \"<div class=\\\"codehilite\\\" style=\\\"background: #f8f8f8;\\\">\\n<pre style=\\\"line-height: 125%;\\\">name <span style=\\\"color: #666666;\\\">=</span> fix_capitalization(name)\\nmake_message(name)\\n</pre>\\n</div>\",\n        \"None are necessary, because the variables share the same name.\"\n      ]\n    },\n    \"FlowSubstitution\": {\n      \"type\": \"matching_question\",\n      \"points\": 2,\n      \"body\": \"Given the program below:\\n```python\\ndef x(a:int) ->int:\\n    return 6+a\\ndef y(a:int) -> int:\\n    return a*2\\ndef z(a:int) -> int:\\n    return a-1\\nprint(x(y(z(3))))\\n```\\n\\nMatch each blank to the value that will be substituted as the last line is executed:\",\n      \"answers\": [\n        \"3\",\n        \"2\",\n        \"4\",\n        \"10\",\n        \"None\",\n        \"1\",\n        \"0\",\n        \"5\"\n      ],\n      \"statements\": [\n        \"print(x(y(z(___))))\",\n        \"print(x(y(___)))\",\n        \"print(x(___))\",\n        \"print(___)\",\n        \"___\"\n      ]\n    }\n  }\n}","ip_ranges":"","name":"2B3) Function Flow","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_functions_flow_quiz","version":1},"ip":"216.73.216.157","submission":{"_schema_version":3,"assignment_id":1008,"assignment_version":1,"attempts":0,"code":"","correct":false,"course_id":37,"date_created":"2026-05-20T14:01:59.344918+00:00","date_due":"","date_graded":"","date_locked":"","date_modified":"2026-05-20T14:01:59.344918+00:00","date_started":"","date_submitted":"","endpoint":"","extra_files":"","feedback":"","grading_status":"NotReady","id":2036941,"score":0.0,"submission_status":"Started","time_limit":"","url":"submission_url-a92f3c1a-c731-4e94-8040-f82da9b024d5","user_id":2044668,"user_id__email":"","version":0},"success":true}
