Class 12 INFORMATICS PRACTICES HH.W
Class 12 INFORMATICS PRACTICES HH.W
CLASS – XII
SUBJECT: INFORMATICS PRACTICES
CHAPTER: Pandas-I
HOLIDAY HOMEWORK
___________________________________________________________________________________
Group-A
MCQs on Pandas-I:
Give the proper answer for the following mcq questions:
1. Which of the following is the correct way to import the pandas library?
a) import panda
b) import pandas as pd
c) import pd as pandas
d) import Pandas
2. Pandas is built on top of which library?
a) Matplotlib
b) NumPy
c) Seaborn
d) SciPy
3. Which of the following data structures are provided by Pandas?
a) List and Tuple
b) Series and DataFrame
c) Array and Matrix
d) Dictionary and Set
4. What does a Series in Pandas represent?
a) A one-dimensional labeled array
b) A two-dimensional array
c) A collection of tuples
d) A database table
5. Which of the following is the correct way to create a Series from a list mylist?
a) pd.Series(mylist)
b) pd.DataFrame(mylist)
c) pd.series(mylist)
d) pd.list(mylist)
6. By default, what type of index is assigned to a Pandas Series?
a) Character index
b) Date index
c) Integer index
d) Float index
7. Which attribute is used to get the values of a Series?
a) series.index
b) series.labels
c) series.values
d) series.data
8. How do you access the index of a Series?
a) series.index()
b) series.idx()
c) series.indices
d) series.index
9. A Series can be created using:
a) List
b) Dictionary
c) Numpy array
d) All of the above
10. What is the output type of type(pd.Series([1, 2, 3]))?
a) list
b) numpy.ndarray
c) pandas.Series
d) pandas.DataFrame
21. Which of the following can be used to check for null values in a Series?
a) series.isnull()
b) series.hasnull()
c) series.null()
d) series.empty()
22. Which operator is used for element-wise operations on Series?
a) &
b) *
c) +
d) All of the above
23. The default axis in Series is:
a) 0
b) 1
c) 'index'
d) 'columns'
24. Which of the following returns True if all elements are non-zero?
a) series.nonzero()
b) series.notnull()
c) series.all()
d) series.any()
25. The dtype attribute in Series tells us:
a) Number of rows
b) Data type of the Series
c) Null values
d) Series name
Group-B