Page 236 - Robotics and AI class 10
P. 236

6.  Mathematical operator used for string concatenation:
              a.  +                                              b.  -

              c.  *                                              d.  /
            7.  The show() function will :

              a.  Create a graph                                 b.  Display a graph
              c.  Hide a graph                                   d.  Alter a graph
            8.  Which of the following is the valid example of a string value:
              a.  123                                            b.  ‘123’

              c.  12.3                                           d.  True
            9.  To delete a row or a column, the ………………………. method is used with the DataFrame.

              a.  delete()                                       b.  pop()
              c.  drop()                                         d.  erase()
           10.  ………………………. will count the total non NaN values in a series

              a.  NaN()                                          b.  none()
              c.  add()                                          d.  count()

        B.  Fill in the blanks.
            1.  A ………………………. is written in any programming language.

            2.  Python is an ………………………. language.
            3.  Remainder operator and floor division are ………………………. operators.

            4.  List is a collection of ………………………. data arranged in a sequence.
            5.  List is a ………………………. data type in python.
            6.  The index number begins with 0 till length-1 in ………………………. .
            7.  ………………………. are the points on the graph that represent a data value on a line or scatter chart.

            8.  ………………………. returns the last n members of the series.
            9.  The elements can be accessed using either ………………………. index or labelled index.

           10.  The symbol used for floor division is ………………………..
           11.  Arrays are mainly used for ………………………. operations.
           12.  An array of one dimension is called a ………………………..
        C.  Find the errors in the given code and write the correct code:

            1.  a = input("enter a number)
          Ans.  a = input("enter a number")
            2.  b + c = a
          Ans.  a = b + c
            3.  print("hello + Friends")
          Ans.  print("hello" + "Friends")
            4.  marks==total/2
          Ans.  marks=total/2
            5.  a=input(int("enter marks"))
          Ans.  a=int(input("enter marks"))
              234     Touchpad Robotics & Artificial Intelligence-X
   231   232   233   234   235   236   237   238   239   240   241