Page 241 - AI_Ver_3.0_class_11
P. 241

B.  Fill in the blanks.
                    1.   Python comes with a large standard library that provides a wide range of    and               for
                        tasks such as file I/O, networking, web development, and more, reducing the need to write code from scratch.
                    2.                 allows you to enter Python commands directly into the command line shell and immediately see the
                        results.
                    3.   Script mode involves writing Python code in a text file with a    extension and then executing that file
                        using the Python interpreter.
                    4.                 in Python are fundamental elements of the language's syntax and are the smallest individual units
                        of a program.
                    5.  A                data  type  refers to  an  ordered  collection of elements, where  each  element is indexed  by  a
                        non-negative integer.

                    6.   The range() function is commonly used with         to iterate over a specific range of numbers.
                    7.                 involves replacing missing values with a specific value.
                    8.   In Pandas, attributes do not perform any computation or modification on the data; instead, they provide access to
                                      or properties of the object.
                    9.   Scikit-learn provides utilities  for feature selection and dimensionality  reduction, including methods like
                                      ,               and feature importance ranking.
                   10.                 produces predictions based on the majority class of the ‘k’ nearest data points.

                 C.  State whether these statements are true or false.
                    1.   Python is a compiled language.

                    2.   Python code is first divided into tokens during the lexical analysis phase of the interpretation process.
                    3.   The values which the operators use to get the output are called identifiers.

                    4.   Variables in Python do not have fixed locations.
                    5.   == is an assignment operator.
                    6.   The Boolean data type in Python represents one of three values: True or False or None.

                    7.   Multiple assignment of variables is possible in Python.
                    8.   Python libraries are designed to be reused in different projects that makes the development easier
                        by providing various ready-to-use solutions for particular tasks.
                    9.   Series represents a two-dimensional array capable of holding various types of data in it.

                    10.   NumPy provides support for arrays, matrices, and a variety of mathematical functions to operate on
                        these data structures efficiently.

                                                  SECTION B (Subjective Type Questions)
                 A.  Short answer type questions.

                     1.  Name the types of tokens in Python.
                   Ans.
                                                                Tokens





                          Keywords          Identifiers         Literals         Operators        Punctuators



                                                                                         Python Programming     239
   236   237   238   239   240   241   242   243   244   245   246