Seaborn MCQs (25)
1) Seaborn is mainly used for?
A. Web development
B. Data visualization in Python
C. Database creation
D. Operating system
2) Seaborn is built on top of?
A. NumPy
B. Matplotlib
C. Django
D. Flask
3) Common import statement for Seaborn?
A. import seaborn as sb
B. import seaborn as sns
C. import sns as seaborn
D. import seaborn as sn
4) Which function creates a scatter plot in Seaborn?
A. sns.scatterplot()
B. sns.lineplot()
C. sns.barplot()
D. sns.countplot()
5) Which plot is best for category vs numeric data?
A. barplot
B. heatmap
C. pairplot
D. kdeplot
6) Which Seaborn plot shows distribution of one variable?
A. histplot
B. scatterplot
C. barplot
D. lineplot
7) Which plot is used to show correlation matrix?
A. boxplot
B. heatmap
C. stripplot
D. swarmplot
8) pairplot is mainly used to?
A. Show pairwise relationships
B. Show only counts
C. Show only time series
D. Create tables
9) Which plot shows summary using quartiles?
A. boxplot
B. countplot
C. barplot
D. lineplot
10) countplot is used for?
A. Counting category frequency
B. Continuous trend
C. Correlation
D. 3D graphs
11) hue parameter is used to?
A. Add color grouping by category
B. Add title
C. Remove axis
D. Save figure
12) Which plot is best for time series data?
A. lineplot
B. countplot
C. stripplot
D. swarmplot
13) Which plot shows categorical scatter distribution?
A. stripplot
B. histplot
C. kdeplot
D. heatmap
14) swarmplot differs from stripplot by?
A. Avoids overlapping points
B. Shows correlation
C. Only shows mean
D. Only works on time series
15) Which plot is best to compare distributions across categories?
A. violinplot
B. lineplot
C. heatmap
D. pairplot
16) violinplot shows?
A. Distribution + box plot info
B. Only counts
C. Only correlation
D. Only lines
17) Which plot shows regression line by default?
A. regplot
B. histplot
C. countplot
D. heatmap
18) lmplot is used for?
A. Linear model plots with facets
B. Only pie charts
C. Only 3D charts
D. Creating databases
19) Which function loads sample datasets in Seaborn?
A. sns.load_dataset()
B. sns.read_csv()
C. sns.get_data()
D. sns.open_dataset()
20) Which parameter changes plot style theme?
A. sns.set_theme()
B. sns.save()
C. sns.show()
D. sns.theme_plot()
21) FacetGrid is used to?
A. Create multiple plots by category
B. Delete columns
C. Encrypt data
D. Run SQL queries
22) Which plot is best for categorical comparison using mean by default?
A. barplot
B. histplot
C. kdeplot
D. heatmap
23) Which plot is used for density estimation?
A. kdeplot
B. countplot
C. boxplot
D. barplot
24) Which plot shows relationship of 3 variables using size?
A. scatterplot with size parameter
B. heatmap only
C. histogram only
D. countplot only
25) Seaborn is best suited for?
A. Statistical data visualization
B. OS management
C. Creating APIs
D. Game development
Answer Key
1) B
2) B
3) B
4) A
5) A
6) A
7) B
8) A
9) A
10) A
11) A
12) A
13) A
14) A
15) A
16) A
17) A
18) A
19) A
20) A
21) A
22) A
23) A
24) A
25) A