Graded Quiz: Interactive Visual Analytics and Dashboard :Applied Data Science Capstone (Applied Data Science Specialization) Answers 2025
1. Question 1
How can you add marking objects (circles, markers, lines) on a Folium map? (Click all that apply)
-
✅ map.add_child(object)
-
❌ add_node(map, object)
-
❌ map.add_to(object)
-
✅ object.add_to(map)
Explanation: In Folium, objects can be added either using map.add_child(obj) or by calling obj.add_to(map).
2. Question 2
If you want to add multiple markers with similar coordinates, which plugin should you use?
-
❌ MarkerContainer
-
❌ Markers should be added directly
-
❌ MarkerGroup
-
✅ MarkerCluster
Explanation: MarkerCluster groups overlapping markers to avoid clutter.
3. Question 3
Which attribute is used to provide available selections for a Plotly Dropdown?
-
✅ options
-
❌ placeholder
-
❌ values
-
❌ input
Explanation: In Dash, a dcc.Dropdown uses the options parameter to populate selectable items.
4. Question 4
How do we associate the result of a callback function to a layout element?
-
❌ Dash automatically renders it
-
❌ Using component name
-
✅ Using a unique component id
Explanation: Dash callbacks always reference components by their id property.
5. Question 5
Can we add multiple input components to a Dash callback function?
-
✅ Yes
-
❌ No
Explanation: Dash allows multiple inputs via @app.callback(Output(...), [Input(...), Input(...), ...]).
🧾 Summary Table
| Q# | Correct Answer(s) | Key Concept |
|---|---|---|
| 1 | map.add_child(object), object.add_to(map) | Folium objects added via child or add_to |
| 2 | MarkerCluster | Cluster overlapping markers |
| 3 | options | Dropdown selections are defined in options |
| 4 | Using component id | Dash links callbacks using component IDs |
| 5 | Yes | Dash supports multiple inputs |