Data Analysis With Python MCQs

Which Python library is commonly used for data exploration and data cleaning tasks, providing interactive and user-friendly interfaces?

A. Pandas
B. Jupyter Notebook
C. Seaborn
D. None of the above

In Pandas, which method is used to sort a DataFrame by the values in one or more columns in ascending or descending order?

A. apply()
B. pivot_table()
C. sort_values()
D. filter()

What is the primary purpose of the Seaborn library in Python for data analysis and visualization?

A. Machine learning
B. Data manipulation
C. Web development
D. Statistical data visualization

In Python, which library is often used for creating interactive dashboards and web applications for data analysis and visualization?

A. Dash
B. Numpy
C. Matplotlib
D. Pandas

What Python function is used to perform element-wise mathematical operations on Numpy arrays?

A. describe()
B. plt.plot()
C. df.apply()
D. np.add()

In Pandas, what method is used to remove missing values from a DataFrame?

A. groupby()
B. drop_duplicates()
C. dropna()
D. fillna()

Which Python library is commonly used for machine learning and predictive modeling?

A. Matplotlib
B. Pandas
C. Numpy
D. Scikit-learn

What Python library provides interactive and web-based data visualizations?

A. Plotly
B. Seaborn
C. Pandas
D. Matplotlib

In Pandas, what method is used to calculate summary statistics for numerical columns in a DataFrame?

A. groupby()
B. value_counts()
C. describe()
D. reshape()

What is the primary data structure in Numpy used for storing and performing operations on numerical data?

A. Tensor
B. Series
C. DataFrame
D. ndarray

In Python, what is the main purpose of the "groupby" operation in Pandas?

A. Sorting data
B. Filtering data
C. Reshaping data
D. Grouping and aggregating data

Which Python library is commonly used for statistical analysis and hypothesis testing?

A. SciPy
B. Pandas
C. Seaborn
D. Plotly

What is the primary purpose of the Matplotlib library in Python?

A. Statistical analysis
B. Machine learning
C. Data manipulation
D. Creating data visualizations

Which Python library provides tools for working with multi-dimensional arrays and matrices?

A. Matplotlib
B. Pandas
C. Numpy
D. Scikit-learn

What Python function is used to select specific rows and columns from a Pandas DataFrame?

A. np.array()
B. df.loc[]
C. pd.read_csv()
D. None of the above

What library in Python is commonly used for data manipulation and analysis?

A. Pandas
B. Matplotlib
C. Numpy
D. Scikit-learn

In Python, which module provides functions for working with dates and times?

A. random
B. math
C. numpy
D. datetime

What is the primary data structure in Pandas used for storing and working with tabular data?

A. Series
B. Array
C. DataFrame
D. Dictionary

Which Python library is widely used for creating data visualizations and plots?

A. Numpy
B. Matplotlib
C. Scikit-learn
D. None of the above

What Python function is used to read a CSV (Comma-Separated Values) file into a Pandas DataFrame?

A. df.describe()
B. plt.savefig()
C. pd.read_csv()
D. np.load()

Leave a Comment