Page 486 - AI Ver 3.0 class 10_Flipbook
P. 486

3.  Dictionary is a combination of key: value.                                               ……….……
                  4.  String can be enclosed in single or double quotes.                                       ……….……

                  5.  Set is an immutable, ordered collection of values.                                       ……….……
                  6.  Boolean is a data type with two built in values.                                         ……….……
                  7.  The scipy.fftpack module is used for fast Fourier transforms and related operations for spectral analysis.   ……….……
                  8.  SciPy is built on the NumPy extension of Python, which provides support for multi-dimensional arrays
                    and matrices.                                                                              ……….……

                  9.  In Matplotlib, the 'scatter' function plots data using a line graph.                     ……….……
                 10.  The "marker" parameter in Matplotlib's plot function allows you to change the shape of the data.    ……….……
                 11.  The count() function in Pandas Series returns the total number of elements including the missing ones.    ……….……
                 12.  In Pandas, rows can be deleted using the .drop() method.                                 ……….……
                 13.  The np.random.randint(10, size=(3,4)) function generates a 3x4 matrix filled with random integers.    ……….……

                 14.  In NumPy, the function np.sort() can be used to sort a 1D array or multi-dimensional array.    ……….……
                                               SECTION B (Subjective Type Questions)

                 Short answer type questions.

                  1.  Find out the errors in the given code.
                    a.  “abc”=name
                    b. print(“hello class)
                    c. n=input(enter a number)
                    d. n1=10,n2=20
                    e.  20/10=a
                    f.  a+b=c
                    g. num=int(input(enter your name)

                  2.  Give the output of the given statements.
                    a. print(12< 9 and 10 >= 20)
                    b. print(int(False)+10)
                    c.  print(12/2+2)
                    d. print(‘5’+’10’)
                    e. print(12+3*((10*2)-8)/5)
                    f.  print(-12//3)

                  3.  Which of the following identifiers are invalid? Give reasons.
                    a.  else                  b.  My house             c.  #number
                    d. Class1                 e.  firstname            f.  Full Name
                    g. Rollno

                  4.  What is the purpose of the scipy.optimize module in SciPy, and name one function it provides?
                  5.  What is the purpose of the "plt.xticks()" function in Matplotlib?
                  6.  What is the difference between a NumPy array and a Python list in terms of memory efficiency and mathematical
                    operations?








                    484     Touchpad Artificial Intelligence (Ver. 3.0)-X
   481   482   483   484   485   486   487   488   489   490   491