Page 241 - Robotics and AI class 10
P. 241

10.  Data structure used in Pandas for only one dimensional array is :

                  a.  Series                                         b.  Dataframes
                  c.  NumPy                                          d.  Matplotlib

            B.  Fill in the blanks.

               1.  ………………………. indexing begins with -1.

               2.  The elements in a list can be of ………………………. data types.

               3.  ………………………. function will delete all the elements in a list.

               4.  To declare a Tuple with one item you need to specify ………………………. after the item.
               5.  The elements from left to right are traversed using the ………………………. indexing.

               6.  To sorted list of elements ………………………. method is used.

               7.  ………………………. method returns the largest element of the tuple.

               8.  ………………………. is extracting the sub parts of the tuple.
               9.  A collection of relevant modules saved under the same directory and a name is called a ………………………..

              10.  ………………………. returns True if the string contains at least one uppercase letter and no lowercase at all.

              11.  ………………………. means referring to a part of the string.

               12.  Python supports two membership operators ………………………. and ………………………..

            C.  State whether these statements are true or false.

               1.  Each value/element is separated by a comma.                                               ……….……
               2.  There are different ways of visiting each element of a list.                              ……….……

               3.  The append() can be used to append any value at any location in a list.                   ……….……

               4.  Tuple contains any number of elements of heterogeneous type.                              ……….……

               5.  The index of a tuple starts from 0.                                                       ……….……
               6.  Slicing operator is used to get the certain range of tuple elements.                      ……….……

               7.  Count(a) returns the index of first element in tuple.                                     ……….……

               8.  If the string is made up of content which extents to more than a line then it can be enclosed
                  in triple quotes.                                                                          ……….……

               9.  The index number of a string can begin with 1.                                            ……….……
               10.  In backward indexing the index number begins with -1.                                    ……….……

               11.  Traversing means visiting each element of a string and processing it as required by a program.   ……….……

               12.  We do not use a loop to traverse a string.                                               ……….……







                                                         Introduction to Data and Programming with Python  239
   236   237   238   239   240   241   242   243   244   245   246