{"assignment":{"_schema_version":2,"course_id":37,"date_created":"2022-06-28T19:00:00+00:00","date_modified":"2022-08-18T19:58:22.128612+00:00","extra_instructor_files":"","extra_starting_files":"","forked_id":null,"forked_version":null,"hidden":false,"id":1154,"instructions":"{\n  \"settings\": {\n    \"readingId\": \"bakery_functions_external_read\"\n  },\n  \"questions\": {\n    \"ExternalFunctionsFacts\": {\n      \"type\": \"multiple_answers_question\",\n      \"points\": 3,\n      \"body\": \"Which of the following statements are true about importing?\",\n      \"answers\": [\n        \"Imported functions cannot be called in user-defined functions.\",\n        \"Imported variables cannot be read in user-defined functions.\",\n        \"You must always test imported functions using `assert_equals` to make sure they work correctly.\",\n        \"Some libraries are not built into standard Python distributions and must be installed separately.\",\n        \"Importing functions is pointless, because you can always just implement the function yourself instead.\"\n      ]\n    },\n    \"DesignerObjectFunctions\": {\n      \"type\": \"multiple_answers_question\",\n      \"points\": 2,\n      \"body\": \"According to the [designer documentation](https://designer-edu.github.io/designer/students/functions.html), which of the following are functions that create Designer Objects?\",\n      \"answers\": [\n        \"circle\",\n        \"triangle\",\n        \"apple\",\n        \"rectangle\",\n        \"emoji\",\n        \"text\",\n        \"int\"\n      ]\n    },\n    \"DesignerCircleFunction\": {\n      \"type\": \"multiple_answers_question\",\n      \"points\": 2,\n      \"body\": \"Most Designer functions can take a variable number of arguments, depending on whether you need to override default values. According to the [designer documentation](https://designer-edu.github.io/designer/students/docs.html#circle), which of the following are valid ways to create a circle?\",\n      \"answers\": [\n        \"circle('blue')\",\n        \"circle('red', 10)\",\n        \"circle('green', 10, 0, 0)\",\n        \"circle('yellow', 10, 'top of screen')\",\n        \"rectangle('orange', 50, 30)\"\n      ]\n    },\n    \"DesignerValidProgram\": {\n      \"type\": \"true_false_question\",\n      \"points\": 1,\n      \"body\": \"Will the following code correctly draw an emoji of a fire in the center of the window? (Hint, you can try running it yourself and see!)\\n\\n```python\\nfrom designer import *\\n\\ndraw(emoji('\\ud83d\\udd25'))\\n```\"\n    },\n    \"DesignerDrawMissingArgument\": {\n      \"type\": \"multiple_choice_question\",\n      \"points\": 1,\n      \"body\": \"Why won't the following code make a gold circle appear on the screen?\\n\\n```python\\nfrom designer import *\\n\\ncircle('gold', 50)\\n\\ndraw()\\n```\",\n      \"answers\": [\n        \"The string `gold` is not a valid Designer color.\",\n        \"The `circle` function needs to have at least four parameters.\",\n        \"The `save` function was not called.\",\n        \"The `draw` function needs to have the result of the `circle` function provided as an argument.\",\n        \"The `import` statement is wrong\",\n        \"Trick question, the code works perfectly.\"\n      ]\n    },\n    \"DesignerMinimumProgram\": {\n      \"type\": \"multiple_answers_question\",\n      \"points\": 2,\n      \"body\": \"Which of the following are required at a minimum in order to have a functioning Designer program?\",\n      \"answers\": [\n        \"The `from designer import *` line\",\n        \"One call to the `draw` function, at the end of the program\",\n        \"At least one call to the `rectangle` function\",\n        \"One call to the `save` function, at the end of the program\",\n        \"One call to the `save` function, anywhere in the program\"\n      ]\n    }\n  }\n}","ip_ranges":"","name":"2B4) External Functions","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_external_quiz","version":1},"ip":"216.73.216.157","submission":{"_schema_version":3,"assignment_id":1154,"assignment_version":1,"attempts":0,"code":"","correct":false,"course_id":37,"date_created":"2026-05-20T12:41:58.763606+00:00","date_due":"","date_graded":"","date_locked":"","date_modified":"2026-05-20T12:41:58.763606+00:00","date_started":"","date_submitted":"","endpoint":"","extra_files":"","feedback":"","grading_status":"NotReady","id":2036755,"score":0.0,"submission_status":"Started","time_limit":"","url":"submission_url-81e7f1fb-7b2c-4318-8c60-f05a0721c64b","user_id":2044660,"user_id__email":"","version":0},"success":true}
