Page 302 - Ai_C10_Flipbook
P. 302

3.  Which of the following is used to change the marker in a Matplotlib plot?
                    a.  plt.marker()                                   b.  marker=
                    c.  plt.set_marker()                               d.  plt.plot(marker='*')

                  4.  Which module in SciPy is primarily used for optimization problems like root finding and curve fitting?
                    a.  scipy.interpolate                              b.  scipy.optimize
                    c.  scipy.stats                                    d.  scipy.signal
                  5.  Which of the following tasks can be performed using the OpenCV library?

                    a.  Data manipulation and analysis                 b.  Computer Vision and Machine Learning
                    c.  Numerical computing with arrays                d.  Machine Learning model building
                  6.  Which among the following is a special data type?
                    a.  Int                                            b.  None
                    c.  True                                           d.  False

                  7.   What will be the output of the given expression?
                    6*3+4**2//5-8
                    a.  34                                             b.  17
                    c.  13                                             d.  45

                  8.  If x=True, then which among the following is the correct data type of x?
                    a.  Dictionary                                     b.  String
                    c.  Integer                                        d.  Boolean
                  9.  Which data type will be returned by the value of a=int(‘65’)?
                    a.  Int                                            b.  String

                    c.  Boolean                                        d.  Float
                 10.  Which among the following do we use to give an alternative in an if condition?
                    a.  for                                            b.  elif
                    c.  print                                          d.  input

              B.  Fill in the blanks.
                  1.  Anaconda ………………………. serves as an alternative to the Anaconda Prompt.
                  2.   A ………………………. provides programming language support in Jupyter.
                  3.  A ………………………. is used to write code in the notebook that is executed by the notebook’s kernel.
                  4.  By default, the end of a statement is done by pressing an ………………………..
                  5.  ………………………. starts with hash symbol # followed by the text to be written as a comment that lasts till the end of the
                    line.
                  6.  The process of repetition of a set of instructions based on a criterion is called a ………………………..
                  7.  ………………………. are more efficient compared to Python lists as they are homogeneous in nature.

                  8.  The ………………………. function in Matplotlib is used to plot a scatter graph.
                  9.  The scipy.linalg module in SciPy focuses on ………………………. operations, such as matrix factorization and eigenvalue
                    problems.

                                               SECTION B (Subjective Type Questions)

                 Short answer type questions.
                  1.  Define Arrays.
                Ans.  Arrays are an ordered collection of values of the same data type that can be arranged in one or more dimensions. They
                    can store numbers, characters, Boolean values, etc.
                    300     Artificial Intelligence Play (Ver 1.0)-X
   297   298   299   300   301   302   303   304   305   306   307