MauryaHub PYQ Practice

cs2008_2024T2_Q1_AN.pdf

Machine Learning Practice · Quiz 1 · May 2024

← Course papers · Start practice / exam

This page contains the reliably extracted subset, not the complete original paper.

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

Question 132 NAT · 2.5 marks

Consider a dataset that has 25 data-points. The data-point xi and its frequency is given in the following table: [[IMAGE:84882d9d0fbdb573_1_3]] In case the table is not clear: the value 0 appears once in the dataset, the value 1 appears four times in the dataset, and so on. Find the maximum likelihood estimate for the parameter λ of the Poisson distribution given this dataset.
Source diagram or notation

    A published solution is not available for this question yet.

    Question 134 NAT · 1.0 marks

    Consider following common data and answer the given subquestions: [[IMAGE:84882d9d0fbdb573_3_4]]
    What will be the output of the following code snippet? [[IMAGE:84882d9d0fbdb573_3_5]] Enter -1, if you think the above code snippet will generate an error.
    Source diagram or notationSource diagram or notation

      A published solution is not available for this question yet.

      Question 135 NAT · 1.0 marks

      Consider following common data and answer the given subquestions: [[IMAGE:84882d9d0fbdb573_3_4]]
      What will be the output of the following code snippet? [[IMAGE:84882d9d0fbdb573_3_6]] Enter -1, if you think the above code snippet will generate an error.
      Source diagram or notationSource diagram or notation

        A published solution is not available for this question yet.

        Question 136 NAT · 2.0 marks

        Consider following common data and answer the given subquestions: [[IMAGE:84882d9d0fbdb573_3_4]]
        What will be the output of the following code snippet? [[IMAGE:84882d9d0fbdb573_4_7]] Enter -1, if you think the above code snippet will generate an error.
        Source diagram or notationSource diagram or notation

          A published solution is not available for this question yet.

          Question 137 NAT · 2.0 marks

          Consider following common data and answer the given subquestions: [[IMAGE:84882d9d0fbdb573_3_4]]
          What will be the output of the following code snippet? [[IMAGE:84882d9d0fbdb573_4_8]] Enter -1, if you think the above code snippet will generate an error.
          Source diagram or notationSource diagram or notation

            A published solution is not available for this question yet.

            Question 138 MSQ · 2.0 marks

            Consider following common data and answer the given subquestions: [[IMAGE:84882d9d0fbdb573_3_4]]
            Given the data, which of the following options will provide the same output?
            Source diagram or notation
            1. [[IMAGE:84882d9d0fbdb573_5_9]]
              Source diagram or notation
            2. [[IMAGE:84882d9d0fbdb573_5_10]]
              Source diagram or notation
            3. [[IMAGE:84882d9d0fbdb573_5_11]]
              Source diagram or notation
            4. [[IMAGE:84882d9d0fbdb573_5_12]]
              Source diagram or notation
            5. [[IMAGE:84882d9d0fbdb573_5_13]]
              Source diagram or notation
            6. [[IMAGE:84882d9d0fbdb573_5_14]]
              Source diagram or notation

            A published solution is not available for this question yet.

            Question 139 MSQ · 2.0 marks

            Consider following common data and answer the given subquestions: [[IMAGE:84882d9d0fbdb573_3_4]]
            If you would like to see the most frequent car manufacturers in the dataset, which of the following can be used?
            Source diagram or notation
            1. [[IMAGE:84882d9d0fbdb573_5_15]]
              Source diagram or notation
            2. [[IMAGE:84882d9d0fbdb573_5_16]]
              Source diagram or notation
            3. [[IMAGE:84882d9d0fbdb573_5_17]]
              Source diagram or notation
            4. [[IMAGE:84882d9d0fbdb573_5_18]]
              Source diagram or notation
            5. [[IMAGE:84882d9d0fbdb573_5_19]]
              Source diagram or notation

            A published solution is not available for this question yet.

            Question 140 MSQ · 2.0 marks

            Which of the following choice(s) are correct ?
            1. Null values cannot be interpreted by the model hence we need to handle them accordingly.
            2. Null values cannot be replaced because we can not manipulate the dataset.
            3. We should let the sklearn or software automatically decide how to handle different kinds of missing values.
            4. Different types of representation of missing values could be seen in the dataset.

            A published solution is not available for this question yet.

            Question 141 MSQ · 2.0 marks

            Which of the following options are true about Pearson correlation matrix ?
            1. [[IMAGE:84882d9d0fbdb573_6_20]]
              Source diagram or notation
            2. [[IMAGE:84882d9d0fbdb573_6_21]]
              Source diagram or notation
            3. [[IMAGE:84882d9d0fbdb573_6_22]]
              Source diagram or notation
            4. [[IMAGE:84882d9d0fbdb573_6_23]]
              Source diagram or notation

            A published solution is not available for this question yet.

            Question 142 MSQ · 3.0 marks

            [[IMAGE:84882d9d0fbdb573_6_24]]
            Source diagram or notation
            1. [[IMAGE:84882d9d0fbdb573_6_25]]
              Source diagram or notation
            2. [[IMAGE:84882d9d0fbdb573_6_26]]
              Source diagram or notation
            3. [[IMAGE:84882d9d0fbdb573_6_27]]
              Source diagram or notation
            4. [[IMAGE:84882d9d0fbdb573_6_28]]
              Source diagram or notation
            5. [[IMAGE:84882d9d0fbdb573_6_29]]
              Source diagram or notation
            6. [[IMAGE:84882d9d0fbdb573_6_30]]
              Source diagram or notation

            A published solution is not available for this question yet.

            Question 143 MCQ · 2.0 marks

            We need to preprocess the data before using it for model building due to which of the following reasons ?
            1. Due to errors in data capture, data may contain outliers or missing values.
            2. Different features may be at different scales.
            3. Data contains non numerical features.
            4. All of these

            A published solution is not available for this question yet.

            Question 144 MCQ · 3.0 marks

            Consider following data and answer the given subquestions: [[IMAGE:84882d9d0fbdb573_7_31]] Each row represents a data point. There are exactly 4 points. The index of points starts from 0 and ends at 3 (included).
            Which of the following pairs have the highest euclidean distance? Note: take care of the missing values and adjust accordingly. The options refer to the indices of points.
            Source diagram or notation
            1. 1 and 2
            2. 0 and 2
            3. 1 and 3
            4. 2 and 3
            5. 0 and 1
            6. There is a tie between two or more options.
            7. None of these.

            A published solution is not available for this question yet.

            Question 145 MCQ · 2.0 marks

            Consider following data and answer the given subquestions: [[IMAGE:84882d9d0fbdb573_7_31]] Each row represents a data point. There are exactly 4 points. The index of points starts from 0 and ends at 3 (included).
            Which of the following pairs have the smallest euclidean distance? Note: take care of the missing values and adjust accordingly. The options refer to the indices of points.
            Source diagram or notation
            1. 1 and 2
            2. 0 and 2
            3. 1 and 3
            4. 2 and 3
            5. 0 and 1
            6. There is a tie between two or more options.
            7. None of these.

            A published solution is not available for this question yet.

            Question 146 NAT · 2.0 marks

            Consider following data and code snippet: [[IMAGE:84882d9d0fbdb573_9_32]] Based on the above data, answer the given subquestions.
            What will be the output of the following code snippet: [[IMAGE:84882d9d0fbdb573_9_33]] Enter -1, if you think the above code snippet will generate an error.
            Source diagram or notationSource diagram or notation

              A published solution is not available for this question yet.

              Question 147 NAT · 2.0 marks

              Consider following data and code snippet: [[IMAGE:84882d9d0fbdb573_9_32]] Based on the above data, answer the given subquestions.
              What will be the output of the following code snippet: [[IMAGE:84882d9d0fbdb573_9_34]] Enter -1, if you think the above code snippet will generate an error.
              Source diagram or notationSource diagram or notation

                A published solution is not available for this question yet.

                Question 148 NAT · 2.0 marks

                Consider following data and code snippet: [[IMAGE:84882d9d0fbdb573_9_32]] Based on the above data, answer the given subquestions.
                What will be the output of the following code snippet: [[IMAGE:84882d9d0fbdb573_10_35]] Enter -1, if you think the above code snippet will generate an error.
                Source diagram or notationSource diagram or notation

                  A published solution is not available for this question yet.

                  Question 149 NAT · 2.0 marks

                  Consider following data and code snippet: [[IMAGE:84882d9d0fbdb573_9_32]] Based on the above data, answer the given subquestions.
                  What will be the output of the following code snippet: [[IMAGE:84882d9d0fbdb573_10_36]] Enter -1, if you think the above code snippet will generate an error.
                  Source diagram or notationSource diagram or notation

                    A published solution is not available for this question yet.

                    Question 150 MSQ · 2.0 marks

                    Consider following data and code snippet: [[IMAGE:84882d9d0fbdb573_9_32]] Based on the above data, answer the given subquestions.
                    Which of the following can be used to get the simpleimputer object?
                    Source diagram or notation
                    1. [[IMAGE:84882d9d0fbdb573_11_37]]
                      Source diagram or notation
                    2. [[IMAGE:84882d9d0fbdb573_11_38]]
                      Source diagram or notation
                    3. [[IMAGE:84882d9d0fbdb573_11_39]]
                      Source diagram or notation
                    4. [[IMAGE:84882d9d0fbdb573_11_40]]
                      Source diagram or notation
                    5. [[IMAGE:84882d9d0fbdb573_11_41]]
                      Source diagram or notation
                    6. [[IMAGE:84882d9d0fbdb573_11_42]]
                      Source diagram or notation
                    7. [[IMAGE:84882d9d0fbdb573_11_43]]
                      Source diagram or notation

                    A published solution is not available for this question yet.

                    Question 151 MCQ · 2.0 marks

                    Go through the code snippet given below and answer the given subquestions. [[IMAGE:84882d9d0fbdb573_12_44]]
                    Which of the following options will be the output of the given code?
                    Source diagram or notation
                    1. [[IMAGE:84882d9d0fbdb573_12_45]]
                      Source diagram or notation
                    2. [[IMAGE:84882d9d0fbdb573_12_46]]
                      Source diagram or notation
                    3. [[IMAGE:84882d9d0fbdb573_12_47]]
                      Source diagram or notation
                    4. [[IMAGE:84882d9d0fbdb573_12_48]]
                      Source diagram or notation

                    A published solution is not available for this question yet.

                    Question 152 MCQ · 2.0 marks

                    Go through the code snippet given below and answer the given subquestions. [[IMAGE:84882d9d0fbdb573_12_44]]
                    [[IMAGE:84882d9d0fbdb573_12_49]]
                    Source diagram or notationSource diagram or notation
                    1. -0.528
                    2. 1
                    3. 0.528
                    4. Given code will return an error

                    A published solution is not available for this question yet.

                    Question 153 MCQ · 3.0 marks

                    Consider the following code: [[IMAGE:84882d9d0fbdb573_13_50]] Which of the following may be the correct output of the above code?:
                    Source diagram or notation
                    1. [[IMAGE:84882d9d0fbdb573_13_51]]
                      Source diagram or notation
                    2. [[IMAGE:84882d9d0fbdb573_13_52]]
                      Source diagram or notation
                    3. [[IMAGE:84882d9d0fbdb573_13_53]]
                      Source diagram or notation
                    4. [[IMAGE:84882d9d0fbdb573_13_54]]
                      Source diagram or notation
                    5. [[IMAGE:84882d9d0fbdb573_13_55]]
                      Source diagram or notation

                    A published solution is not available for this question yet.

                    Question 154 MCQ · 3.0 marks

                    Consider the following code: [[IMAGE:84882d9d0fbdb573_14_56]] Which of the following is more likely to be true?
                    Source diagram or notation
                    1. [[IMAGE:84882d9d0fbdb573_14_57]]
                      Source diagram or notation
                    2. [[IMAGE:84882d9d0fbdb573_14_58]]
                      Source diagram or notation
                    3. [[IMAGE:84882d9d0fbdb573_14_59]]
                      Source diagram or notation

                    A published solution is not available for this question yet.

                    Question 155 NAT · 2.0 marks

                    What will be the output of the following code ? [[IMAGE:84882d9d0fbdb573_14_60]]
                    Source diagram or notation

                      A published solution is not available for this question yet.

                      Question 156 MCQ · 2.0 marks

                      [[IMAGE:84882d9d0fbdb573_15_61]]
                      Source diagram or notation
                      1. It controls the learning rate of the stochastic regressor during training.
                      2. It determines the maximum number of iterations for the training process.
                      3. It defines the fraction of the validation set used for early stopping.
                      4. It specifies the tolerance level for early stopping based on the change in the validation error.

                      A published solution is not available for this question yet.

                      Question 157 MSQ · 2.0 marks

                      Consider the following code block and if needed make appropriate assumptions: [[IMAGE:84882d9d0fbdb573_15_62]] Which of the following may be appropriate to be filled in the blank space value for scoring parameter?
                      Source diagram or notation
                      1. [[IMAGE:84882d9d0fbdb573_15_63]]
                        Source diagram or notation
                      2. [[IMAGE:84882d9d0fbdb573_16_64]]
                        Source diagram or notation
                      3. [[IMAGE:84882d9d0fbdb573_16_65]]
                        Source diagram or notation
                      4. [[IMAGE:84882d9d0fbdb573_16_66]]
                        Source diagram or notation
                      5. [[IMAGE:84882d9d0fbdb573_16_67]]
                        Source diagram or notation
                      6. [[IMAGE:84882d9d0fbdb573_16_68]]       **System Commands** **Section Id :** 64065359217 **Section Number :** 10 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 16 **Number of Questions to be attempted :** 16 **Section Marks :** 100 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No **Enable Mark as Answered Mark for Review and** No **Clear Response :** **Section Maximum Duration :** 0 **Section Minimum Duration :** 0 **Section Time In :** Minutes **Maximum Instruction Time :** 0
                        Source diagram or notation

                      A published solution is not available for this question yet.