Quiz for Part III: Core Libraries for Data Analysis
Chapter 5: NumPy Fundamentals
1. What is NumPy mainly used for?
- a) Text Manipulation
- b) Scientific Computing
- c) Web Development
- d) Game Development
2. How do you create a 3x3 matrix filled with 7s in NumPy?
- a) np.array(3,3,7)
- b) np.full((3,3), 7)
- c) np.zeros((3,3)) + 7
- d) np.ones((3,3)) * 7
Chapter 6: Data Manipulation with Pandas
1. Which Pandas data structure is generally used for tabular data?
- a) Array
- b) DataFrame
- c) Dictionary
- d) Series
2. How do you drop a column named 'Age' from a DataFrame df?
- a) df.remove('Age')
- b) df.drop(columns=['Age'])
- c) df.delete('Age')
- d) df.pop('Age')
Chapter 7: Data Visualization with Matplotlib and Seaborn
1. Which function in Matplotlib is generally used to create a simple line plot?
- a) plt.bar()
- b) plt.scatter()
- c) plt.plot()
- d) plt.pie()
2. In Seaborn, what does the hue parameter generally represent...