Skip to content

Commit 5acdce7

Browse files
Update A1_Intro_to_DataScience_and_ML.md
1 parent 24fa142 commit 5acdce7

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

docs/mlpaths/A1_Intro_to_DataScience_and_ML.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
180180
d) The development of software that can reason and solve complex problems like humans.<br>
181181
*(Answer: (1) :eyes:)*
182182
{ .annotate }
183+
183184
1. Answer is: <b>b</b>
184185

185186
2. Consider the following Python code using Pandas:
@@ -195,9 +196,10 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
195196
b) 0<br>
196197
c) Approximately 2.67<br>
197198
d) 6<br>
198-
*(Answer: (a) :eyes:)*
199+
*(Answer: (2) :eyes:)*
199200
{ .annotate }
200-
a. Answer is: <b>c</b>
201+
202+
2. Answer is: <b>c</b>
201203

202204

203205
3. Which Python library is primarily used for creating statistical visualizations like heatmaps and pair plots with concise syntax?<br>
@@ -207,6 +209,7 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
207209
d) Scikit-learn<br>
208210
*(Answer: (1) :eyes:)*
209211
{ .annotate }
212+
210213
1. Answer is: <b>b</b>
211214

212215

@@ -217,34 +220,38 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
217220
d) It's a technique for reducing the number of features.<br>
218221
*(Answer: (1) :eyes:)*
219222
{ .annotate }
223+
220224
1. Answer is: <b>b</b>
221225

222226
5. What is the primary purpose of `train_test_split` in Scikit-learn?<br>
223227
a) To combine two different datasets into one.<br>
224228
b) To separate features from the target variable within a single dataset.<br>
225229
c) To divide a dataset into one part for training the model and another, unseen part for evaluating its performance.<br>
226230
d) To visualize the distribution of data.<br>
227-
*(Answer: (a) :eyes:)*
231+
*(Answer: (2) :eyes:)*
228232
{ .annotate }
229-
a. Answer is: <b>c</b>
233+
234+
2. Answer is: <b>c</b>
230235

231236
6. If you want to create a scatter plot in Python to visualize the relationship between 'Height' and 'Weight' columns in a Pandas DataFrame `df`, which line of code is most appropriate using Seaborn?<br>
232237
a) `sns.histplot(data=df, x='Height', y='Weight')`<br>
233238
b) `sns.boxplot(data=df, x='Height', y='Weight')`<br>
234239
c) `sns.scatterplot(data=df, x='Height', y='Weight')`<br>
235240
d) `df.plot(kind='scatter', x='Height', y='Weight')` (This is Pandas plotting, not Seaborn directly)<br>
236-
*(Answer: (a) :eyes:)*
241+
*(Answer: (2) :eyes:)*
237242
{ .annotate }
238-
a. Answer is: <b>c</b>
243+
244+
2. Answer is: <b>c</b>
239245

240246
7. You have loaded a dataset into a Pandas DataFrame called `sales_df`. How would you display the first 10 rows of this DataFrame?<br>
241247
a) `sales_df.show(10)`<br>
242248
b) `sales_df.display_head(10)`<br>
243249
c) `sales_df.head(10)`<br>
244250
d) `sales_df.first(10)`<br>
245-
*(Answer: (a) :eyes:)*
251+
*(Answer: (2) :eyes:)*
246252
{ .annotate }
247-
a. Answer is: <b>c</b>
253+
254+
2. Answer is: <b>c</b>
248255

249256
8. When you encounter a Python error message that you don't understand while working in a Jupyter Notebook, how can an LLM assist you most effectively?<br>
250257
a) By automatically fixing the code in your notebook.<br>
@@ -253,6 +260,7 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
253260
d) By advising you to restart your computer.<br>
254261
*(Answer: (1) :eyes:)*
255262
{ .annotate }
263+
256264
1. Answer is: <b>b</b>
257265

258266
9. What does the `.info()` method in Pandas primarily provide for a DataFrame?<br>
@@ -262,16 +270,18 @@ This quiz helps you self-assess your understanding. Answers can be verified by r
262270
d) The correlation matrix of numerical columns.<br>
263271
*(Answer: (a) :eyes:)*
264272
{ .annotate }
273+
265274
a. Answer is: <b>c</b>
266275

267276
10. Which of these tasks falls under the 'Data Cleaning/Preparation' stage of the data science workflow?<br>
268277
a) Defining business objectives.<br>
269278
b) Training a machine learning model.<br>
270279
c) Handling missing values and transforming variables.<br>
271280
d) Presenting results to stakeholders.<br>
272-
*(Answer: (a) :eyes:)*
273-
{ .annotate }
274-
a. Answer is: <b>c</b>
281+
*(Answer: (2) :eyes:)*
282+
{ .annotate }
283+
284+
2. Answer is: <b>c</b>
275285

276286
---
277287

0 commit comments

Comments
 (0)