Page 247 - Ai_V3.0_c11_flipbook
P. 247

6.   In a dictionary, keys are         whereas values are mutable.
                    7.   Pandas provides interpolation methods such as         to estimate missing values.
                    8.   The delimiter is used for separating columns. These delimiters can be a comma, semicolon, tab, or any other character.
                        The default value for ‘sep’ is a        .

                    9.                 statement assigns the feature data of the Iris dataset to the variable X.
                   10.                 is a comprehensive learning platform offered by IBM to help individuals develop the skills needed
                        for various roles in technology, including data science, cloud computing, artificial intelligence, cybersecurity, and
                        more.
                 C.   State whether these statements are true or false.

                    1.  The print() function prints or sends the output to the standard output device, which is usually
                        a speaker.
                    2.   A literal refers to a constant or a fixed value.
                    3.   Comments are ignored by the Python interpreter during execution and are solely for human readers.

                    4.   Multiple assignment works with any iterable data structure, including tuples, lists, and even custom
                        objects that support iteration and unpacking.

                    5.   Data types in Python specify the values that a variable can hold.
                    6.   The while statement executes a set of statements repeatedly until the logical expression evaluates to true.
                    7.   CSV files are platform-dependent and difficult to read by both humans and machines.

                    8.  np.empty() function creates an array without initialising its values and not allocating any memory location.
                    9.   You can create a DataFrame only from lists and dictionaries.
                    10.   Pandas provides the dropna() function to drop rows or columns with missing values.


                                                  SECTION B (Subjective Type Questions)
                 A.  Short answer type questions:
                    1.   What do you understand by operator precedence? Explain with the help of an example.

                    2.   Differentiate between single line and multiline comment.
                    3.   What does KNN stand for?
                    4.   What is dynamic typing? How is it helpful?
                    5.   Explain the purpose of keys in a dictionary.

                    6.   What are some real-life applications where the NumPy library is useful?
                    7.   Demonstrate a few ways to create NumPy Arrays.
                    8.   What is a DataFrame? How is it created? Explain any one way.
                    9.   What is Iris DataSet? What is the purpose of creating it?
                    10.   What are the feature and target value of a dataset?

                 B.  Long answer type questions:

                    1.   Discuss the features of Scikit-learn library.
                    2.   Why is splitting data into training and testing sets essential in machine learning?
                    3.   Why do we use precision, confusion metrics and accuracy? How do we use them?
                    4.   Explain the different ways for adding and deleting rows and columns from a DataFrame.

                    5.   List down the different varieties of editors in Python.
                                                                                         Python Programming     245
   242   243   244   245   246   247   248   249   250   251   252