# MCQs For NCERT Class 12 Informatics Practices Chapter 2 Data Handling using Pandas – I

Please refer to the MCQ Questions for Class 12 Informatics Practices Chapter 2 Data Handling using Pandas – I with Answers. The following Data Handling using Pandas – I Class 12 Informatics Practices MCQ Questions have been designed based on the latest syllabus and examination pattern for Class 12. Our experts have designed MCQ Questions for Class 12 Informatics Practices with Answers for all chapters in your NCERT Class 12 Informatics Practices book.

## Data Handling using Pandas – I Class 12 MCQ Questions with Answers

See below Data Handling using Pandas – I Class 12 MCQ Questions with Answers Class 12 Informatics Practices MCQ Questions, solve the questions and compare your answers with the solutions provided below.

Question. Pandas DataFrame is size ________ and value ________
(a) Mutable, Mutable
(b) Immutable, Immutable
(c) Immutable, Mutable
(d) Mutable, Immutable

A

Question. Which of the following is parameter of Series( ) function?
(a) data
(b) index
(c) dtype
(d) All of the above

D

Question. Which of the following statement will create an empty series named “S1”?
(a) S1 = pd.Series(None)
(b) S1 = pd.Series( )
(c) Both of the above
(d) None of the above

C

Question. Which of the following returns number of non-NaN values of Series?
(a) count
(b) size
(c) Index
(d) values

A

Question. Rosy wants to display the series ‘S1’ in reverse order. Help her to find the correct code.
(a) >>> S1[ : : 1]
(b) >>> S1[ : : -1]
(c) >>> S1[ -1 : :]
(d) >>> S1[ : 1 1]

B

Question. A _______________ is a one-dimensional array
(a) Data Frame
(b) Series
(c) Both of the above
(d) None of the above

B

Question. We can imagine a Pandas Series as a ______________ in a spreadsheet
(a) Column
(b) Cell
(c) Table
(d) None of the above

A

Question. ____________________ module is used for serializing and de-serializing any Python object structure.
(a) pickle
(b) unpickle
(c) pandas
(d) math

A

Question. By using Matplotlib, we can generate ____
(a) Histograms
(b) Bar charts
(c) Scatterplots
(d) All of the above

D

Question. The file mode to open a csv file for appending as well reading is ……..
(a) w
(b) w+
(c) a
(d) a+

D

Question. To extract the first three rows and three columns of a dataframe ‘exp’ which of the following is True:
(a) exp.iloc[0:2,0:2]
(b) exp.iloc[0:3,0:3]
(c) exp.iloc[1:3,1:3]
(d) exp.iloc[1:4,1:4]

B

Question. Which of the following are modules/libraries in Python
(a) NumPy
(b) Pandas
(c) Matplotlib
(d) All of the above

D

Question. Which of the following attribute of file handle returns Boolean value?
(a) name
(b) closed
(c) mode
(d) None of the above

B

Question. The plot which tells the trend between two graphed variables is the
(a) scatter graph/chart.
(b) pie
(c) bar
(d) line

D

Question. Identify the correct statement:
(a) Data frames can change their size.
(b) Series act in a way similar to that of an array.
(c) Both (a) and b)
(d) None of the above

C

Question. Data Frame in pandas is
(a) 1 dimensional array
(b) 2 dimensional array
(c) 3 dimensional array
(d) None of the above

B

Question. Which of the following dataframe attribute is used to fetch the datatype of values used in the dataframe?
(a) df.datatypes
(b) df.dt
(c) df.data_types
(d) df.dtypes

D

Question. Which of the following function is used to create a line chart?
(a) line
(b) plot
(c) chart
(d) plotline

B

Question. Which of the following command is used to install Pandas?
(a) Pip install python-pandas
(b) Pip install pandas
(c) Python install python
(d) Pip install pandas

D

Question. Which of the following function will create a vertical bar chart ?
(a) plot( )
(b) bar( )
(c) plotbar()
(d) barh( )

B

Question. Which of the following plotting functions does not plot multiple data series ?
(a) plot( )
(b) bar( )
(c) pie()
(d) barh( )

C

Question. ______________ function returns current date and time.
(a) SET DATEFIRST
(b) SYSDATETIME
(c) Cert_ID
(d) GETDATE

D

Question. While importing pandas and numpy, you must use identifier name as pd and np only. Choose the correct answer
(a) No, its not necessary
(b) Yes, Always otherwise it will produce error
(c) pd and np are keywords used for pandas and numpy
(d) pd and np are ideintifiers used in the respecive module

A

Question. Mathematical Operations on two Series object is done by matching ____________
(a) indexes
(b) values
(c) Both of the above
(d) None of the above