Top 50 MCQs on Exploratory Data Analysis (EDA)
1. What is the primary purpose of Exploratory Data Analysis (EDA)?
A) Train machine learning models
B) Understand the structure and characteristics of data ✅
C) Deploy models
D) Encrypt data
Answer: B
2. Which library is most commonly used for EDA in Python?
A) NumPy
B) Pandas ✅
C) Flask
D) TensorFlow
Answer: B
3. Which function displays the first 5 rows of a DataFrame?
A) tail()
B) first()
C) head() ✅
D) preview()
Answer: C
4. Which function displays the last 5 rows of a DataFrame?
A) bottom()
B) end()
C) tail() ✅
D) last()
Answer: C
5. Which function provides summary statistics of numerical columns?
A) info()
B) describe() ✅
C) summary()
D) stats()
Answer: B
6. Which function gives information about data types and missing values?
A) info() ✅
B) describe()
C) shape()
D) columns()
Answer: A
7. Missing values in Pandas are generally represented as:
A) NULL
B) 0
C) NaN ✅
D) Empty String
Answer: C
8. Which function counts missing values in each column?
A) count()
B) isnull().sum() ✅
C) missing()
D) nullcount()
Answer: B
9. What does the shape attribute return?
A) Column names
B) Number of rows and columns ✅
C) Data types
D) Missing values
Answer: B
10. Which attribute returns column names?
A) headers
B) names
C) columns ✅
D) labels
Answer: C
11. Which visualization is best for checking data distribution?
A) Histogram ✅
B) Pie Chart
C) Line Chart
D) Radar Chart
Answer: A
12. Which plot is best for detecting outliers?
A) Scatter Plot
B) Line Plot
C) Box Plot ✅
D) Area Plot
Answer: C
13. Which plot is commonly used to visualize correlation?
A) Histogram
B) Heatmap ✅
C) Pie Chart
D) Bubble Chart
Answer: B
14. Correlation values range between:
A) 0 to 100
B) -1 to +1 ✅
C) -100 to +100
D) 1 to 10
Answer: B
15. A correlation value of +1 indicates:
A) No relationship
B) Perfect positive relationship ✅
C) Perfect negative relationship
D) Weak relationship
Answer: B
16. A correlation value of -1 indicates:
A) Perfect negative relationship ✅
B) Perfect positive relationship
C) No relationship
D) Random relationship
Answer: A
17. Which plot is best for visualizing the relationship between two numerical variables?
A) Pie Chart
B) Scatter Plot ✅
C) Histogram
D) Bar Chart
Answer: B
18. Which chart is best for categorical data comparison?
A) Bar Chart ✅
B) Histogram
C) Scatter Plot
D) Heatmap
Answer: A
19. Which chart is generally NOT recommended for comparing many categories?
A) Pie Chart ✅
B) Bar Chart
C) Count Plot
D) Histogram
Answer: A
20. Which library is widely used for statistical visualization?
A) Seaborn ✅
B) Flask
C) FastAPI
D) Django
Answer: A
21. Which library provides low-level plotting in Python?
A) TensorFlow
B) Matplotlib ✅
C) Scikit-learn
D) BeautifulSoup
Answer: B
22. Which Pandas function removes duplicate rows?
A) remove_duplicates()
B) drop_duplicates() ✅
C) delete_duplicates()
D) unique()
Answer: B
23. Which function removes rows with missing values?
A) remove_na()
B) dropna() ✅
C) deletena()
D) fillna()
Answer: B
24. Which function fills missing values?
A) fillna() ✅
B) replace_missing()
C) update()
D) complete()
Answer: A
25. Which function returns unique values in a column?
A) distinct()
B) unique() ✅
C) different()
D) values()
Answer: B
26. Which function counts unique values?
A) uniquecount()
B) nunique() ✅
C) countunique()
D) unique()
Answer: B
27. Which function counts frequency of each category?
A) value_counts() ✅
B) count_values()
C) category_count()
D) frequency()
Answer: A
28. Which measure represents the center of data?
A) Mean ✅
B) Range
C) Variance
D) Standard Deviation
Answer: A
29. Which measure is least affected by outliers?
A) Mean
B) Median ✅
C) Mode
D) Variance
Answer: B
30. Which measure represents the most frequent value?
A) Mean
B) Median
C) Mode ✅
D) Variance
Answer: C
31. Which measure represents data spread?
A) Mean
B) Variance ✅
C) Median
D) Mode
Answer: B
32. Standard deviation is the square root of:
A) Mean
B) Median
C) Variance ✅
D) Mode
Answer: C
33. Which EDA step usually comes first?
A) Train Model
B) Data Understanding ✅
C) Model Deployment
D) Hyperparameter Tuning
Answer: B
34. Which plot is useful for pairwise relationships among variables?
A) Pair Plot ✅
B) Pie Chart
C) Area Plot
D) Heatmap
Answer: A
35. Which Seaborn function creates a pair plot?
A) sns.scatter()
B) sns.pairplot() ✅
C) sns.hist()
D) sns.box()
Answer: B
36. Which function calculates correlation in Pandas?
A) corr() ✅
B) covariance()
C) relate()
D) similarity()
Answer: A
37. Which type of variable contains categories?
A) Numerical
B) Categorical ✅
C) Continuous
D) Float
Answer: B
38. Which type of variable can have decimal values?
A) Categorical
B) Numerical ✅
C) Boolean
D) Text
Answer: B
39. Which chart is best for visualizing continuous distributions?
A) Histogram ✅
B) Pie Chart
C) Bar Chart
D) Count Plot
Answer: A
40. Which function displays random rows from a DataFrame?
A) random()
B) sample() ✅
C) choice()
D) pick()
Answer: B
41. What does EDA help identify?
A) Missing values
B) Outliers
C) Patterns
D) All of the above ✅
Answer: D
42. Which of the following is NOT an EDA task?
A) Data Cleaning
B) Visualization
C) Feature Understanding
D) Model Deployment ✅
Answer: D
43. Which plot compares distributions across categories?
A) Box Plot ✅
B) Pie Chart
C) Line Plot
D) Area Chart
Answer: A
44. Which function sorts a DataFrame?
A) arrange()
B) sort_values() ✅
C) order()
D) sort()
Answer: B
45. Which function changes column names?
A) rename() ✅
B) rename_columns()
C) set_columns()
D) columns()
Answer: A
46. Which function detects duplicate rows?
A) duplicated() ✅
B) duplicate()
C) find_duplicates()
D) repeat()
Answer: A
47. Which data type usually requires encoding before ML?
A) Integer
B) Float
C) Categorical ✅
D) Boolean
Answer: C
48. Which library is built on top of Matplotlib?
A) NumPy
B) Seaborn ✅
C) Flask
D) SciPy
Answer: B
49. Which visualization is best for checking feature relationships quickly?
A) Pair Plot ✅
B) Pie Chart
C) Area Plot
D) Radar Plot
Answer: A
50. Why is EDA important before machine learning?
A) It helps understand data quality and patterns before modeling ✅
B) It trains the model automatically
C) It deploys the model
D) It replaces feature engineering
Answer: A
Final Conclusion on Top 50 MCQs on EDA
We really hope that you all have liked this article really very much. Kindly, please share the same with your friends and family too.