Python MCQ Quiz Hub

Pandas MCQ Questions Set 1

Choose a topic to test your knowledge and improve your Python skills

Which of the following are modules/libraries in Python?





✅ Correct Answer: 4

NumPy stands for ____





✅ Correct Answer: 2

Which of the following libraries allows to manipulate, transform and visualize data easily and efficiently.





✅ Correct Answer: 4

PANDAS stands for _____________





✅ Correct Answer: 3

____ is an important library used for analyzing data.





✅ Correct Answer: 3

Important data structure of pandas is/are _





✅ Correct Answer: 3

Which of the following library in Python is used for plotting graphs and visualization





✅ Correct Answer: 3

Pandas Series can have _________________ data types





✅ Correct Answer: 2

Which of the following command is used to install pandas?





✅ Correct Answer: 1

A __________ is a collection of data values and operations that can be applied to that data.





✅ Correct Answer: 1

A _______________ is a one-dimensional array.





✅ Correct Answer: 2

Which of the following statement is wrong?





✅ Correct Answer: 4

A Series by default have numeric data labels starting from ______________.





✅ Correct Answer: 4

The data label associated with a particular value of Series is called its ______





✅ Correct Answer: 2

Which of the following module is to be imported to create Series?





✅ Correct Answer: 2

Which of the following function/method help to create Series?





✅ Correct Answer: 2

When you print/display any series then the left most column is showing _________ value.





✅ Correct Answer: 1

How many values will be there in array1, if given code is not returning any error? >>> series4 = pd.Series(array1, index = [“Jan”, “Feb”, “Mar”, “Apr”])





✅ Correct Answer: 4

Which of the following statement will create an empty series named “S1”?





✅ Correct Answer: 2

How many elements will be there in the series named “S1”? >>> S1 = pd.Series(range(5)) >>> print(S1)





✅ Correct Answer: 1

When we create a series from dictionary then the keys of dictionary become ____





✅ Correct Answer: 1

When we create a series from dictionary then the keys of dictionary become ____





✅ Correct Answer: 1

When we create a series from dictionary then the keys of dictionary become ____





✅ Correct Answer: 1

Write the output of the following : >>> S1=pd.Series(14, index = ['a', 'b', 'c']) >>> print(S1)





✅ Correct Answer: 1

Write the output of the following: >>> S1=pd.Series(14, 7, index = ['a', 'b', 'c']) >>> print(S1)





✅ Correct Answer: 3

What type of error is returned by following code? import pandas as pd S1 = pd.Series(data = (31, 2, -6), index = [7, 9, 3, 2]) print(S1)





✅ Correct Answer: 3

We can imagine a Pandas Series as a ______________ in a spreadsheet





✅ Correct Answer: 1

Which of the following statement is correct for importing pandas in python?





✅ Correct Answer: 4

What type of error is returned by following statement? import pandas as pnd pnd.Series([1,2,3,4], index = [‘a’,’b’,’c’])





✅ Correct Answer: 3

Which attribute is used to give user defined labels in Series





✅ Correct Answer: 1

Fill in the blank to get the ouput as 3 import pandas as pnd S1=pnd.Series([1,2,3,4], index = ['a','b','c','d']) print(S1[___________])





✅ Correct Answer: 4