Page 6 - IPP-12-2025
P. 6

17.  Fill in the blank.                                                                      [1]
                     To check data types of columns in a DataFrame,        attribute is used.
                     (a)  shape                         (b)  size
                     (c)  ndim                          (d)  dtypes
                Ans.  (d)  dtypes
                 18.  Which of the following plots is best used to visualize the distribution of a single numeric variable?   [1]
                     (a)  Line plot                     (b)  Bar chart
                     (c)  Histogram                     (d)  Horizontal bar chart
                Ans.  (c)  Histogram
                 19.  Bluetooth is an example of which of the following network types?                        [1]
                     (a)  WAN                           (b)  PAN
                     (c)  MAN                           (d)  LAN
                Ans.  (b)  PAN
               Questions 20 and 21 are Assertion and Reasoning Based Questions. Mark the correct choice as:

                 (a)  Both Assertion (A) and Reason (R) are true and R is the correct explanation for A.
                 (b)  Both Assertion (A) and Reason (R) are true but R is not the correct explanation for A.
                 (c)  Assertion (A) is true but Reason (R) is false.
                 (d)  Assertion (A) is false but Reason (R) is true.

                 20.  Assertion (A): SQL can be used to insert records.
                     Reasoning (R): SQL INSERT command updates existing records.
                Ans.  (c) Assertion (A) is true but Reason (R) is false.
                 21.  Assertion (A): The values attribute of a Pandas Series returns ndarray of the Series data values.

                     Reasoning (R): The index attribute of a Series provides the labels associated with each value.
                Ans.  (b) Both Assertion (A) and Reason (R) are true but R is not the correct explanation for A.

                                                   SECTION B (7 x 2 = 14 Marks)
                 22.  State any two features of Pandas library.                                               [2]
                                                               Or
                     What is the difference between Series and DataFrame in Pandas?

                Ans.  Two features of Pandas library are as follows:
                      a.  It can read or write in many different formats (integer, float, double, etc.).
                      b.  It supports visualization by integrating libraries such as Matplotlib, Seaborn, etc.
                                                               Or

                                        Series                                      DataFrame
                       (a)  It  is  a  one-dimensional  data  structure   (a)  DataFrame is a two-dimensional data structure
                           storing elements of homogeneous data.      storing heterogeneous data.
                      (b)  Series() method is used to create a series.   (b)  DataFrame()  method  is  used  to  create  a
                                                                      dataframe.
                       (c)  Its size is immutable and data is mutable   (c)  Its size and values are mutable in nature.
                           in nature.
                      (d)  import pandas as pd                    (d)  import pandas as pd
                           S= pd. Series()                            df = pd. DataFrame()
                           print(S)                                   print(df)


                                                                                    Model Test Paper         M.3
   1   2   3   4   5   6   7   8   9   10   11