MCQs for Informatics Practices Class 12 with Answers Data Handling using Pandas – I
Students of class 12 Informatics Practices should refer to MCQ Questions Class 12 Informatics Practices Data Handling using Pandas – I with answers provided here which is an important chapter in Class 12 Informatics Practices NCERT textbook. These MCQ for Class 12 Informatics Practices with Answers have been prepared based on the latest CBSE and NCERT syllabus and examination guidelines for Class 12 Informatics Practices. The following MCQs can help you to practice and get better marks in the upcoming class 12 Informatics Practices examination
Chapter Data Handling using Pandas – I MCQ with Answers Class 12 Informatics Practices
MCQ Questions Class 12 Informatics Practices Data Handling using Pandas – I provided below have been prepared by expert teachers of grade 12. These objective questions with solutions are expected to come in the upcoming Standard 12 examinations. Learn the below provided MCQ questions to get better marks in examinations.
Question. What is the maximum possible length of an identifier?
(a) 31 characters
(b) 63 characters
(c) 79 characters
(d) none of the mentioned
Answer
D
Question. To get the number of elements in a Series object, attribute may be used.
(a) index
(b) size
(c) itemsize
(d) ndim
Answer
B
Question. A _______________ is a collection of data values and operations that can be applied to that data. It enables efficient storage, retrieval and modification to the data.
(a) array
(b) series
(c) data frame
(d) data structure
Answer
D
Question. print(S1[-1]) will return ___________ #’S1′ is a series
(a) last element of series ‘S1’
(b) first element of series ‘S1’
(c) Key Error
(d) all elements of series ‘S1’
Answer
C
Question. Which of the following is false?
(a) The integer format tracks only the locations and sizes of blocks of data.
(b) Pandas follow the NumPy convention of raising an error when you try to convert something to a bool.
(c) Two kinds of SparseIndex are implemented
(d) The integer format keeps an arrays of all of the locations where the data are not equal to the fill value
Answer
A
Question. Which among the following options can be used to create a DataFrame in Pandas ?
(a) A scalar value
(b) An ndarray
(c) A python dict
(d) All of these
Answer
D
Question. To iterate over vertical subsets of a dataframe, function may be used.
(a) iterate( )
(b) iterrows( )
(c) itercols( )
(d) iteritems( )
Answer
D
Question. Important data structure of pandas is/are ___________
(a) Series
(b) DataFrame
(c) Both of the above
(d) None of the above
Answer
C
Question. What will be the output of the following Python code?
from math import factorial
print (math.factorial (5))
(a) 120\
(b) Nothing is printed
(c) Error, method factorial doesn’t exist in math module
(d) Error, the statement should be: print(factorial(5))
Answer
D
Question. Which of the following is correct statement
(a) inplace argument of rename function is set to False, than original dataframe is changed with new index/columns.
(b) del statement of dataframe can be used to delete rows.
(c) When a dataframe object is created, all the columns are sorted automatically.
(d) While specifying your own index sequence in DataFrame() function, Python doesn’t care about length of index.
Answer
C
Question. Which of the following can not be used to add a new column in existing dataframe .
(a) loc
(b) at
(c) iloc
(d) df.<col_lable>
Answer
C
Question. To get the 3 bottommost rows from a dataframe, you may use
(a) bottom
(b) bottom
(3) function.
(c) tail( )
Answer
B
Question. _________ is used when data is in Tabular Format.
(a) NumPy
(b) Pandas
(c) Matplotlib
(d) All of the above
Answer
B
Question. To create an empty Series object, you can use:
(a) pd.Series(empty)
(c) pd.Series( )
(b) pd.Series(np.NaN)
(d) all of these
Answer
C