0% found this document useful (0 votes)
34 views

All Assignments

Uploaded by

bruteforce07
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views

All Assignments

Uploaded by

bruteforce07
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 33

Week 1 : Assignment 1

Assignment submitted on 2022-08-10, 22:45 IST


Types of questions:

● MCQs - Multiple Choice Questions (a question has only one correct answer)

● MSQs

o Multiple Select Questions (a question can have two, three, or four correct options)

o In this case, equal weightage must be given to all options

● True/ False - The learner has to choose either true or false from a given statement.

1 point

What is the output of the following code?

12

58

70

Error: Invalid operation, unsupported operator ‘+’ used between 'int' and 'str’

Yes, the answer is correct.


Score: 1
Accepted Answers:
Error: Invalid operation, unsupported operator ‘+’ used between 'int' and 'str’

1 point

Given two variables j = 6 and g = 3.3. If both normal division and floor division operators were used to
divide j by g, what would be the data type of the value obtained from the operations?

int, int

float, float

float, int

int, float
Yes, the answer is correct.
Score: 1
Accepted Answers:
float, float

1 point

Let a = 5 (101 in binary) and b = 3 (011 in binary). Which of the following operations results in the values 7
and 1?

Yes, the answer is correct.


Score: 1
Accepted Answers:

1 point

State whether the given statement is True or False.

When using the floor division operator (//), if the result is negative, then the result is rounded off to the next
largest integer.

True

False

No, the answer is incorrect.


Score: 0
Accepted Answers:
False

1 point

Let x = "50". Which of the following commands converts the ‘x’ to float datatype?

str(float,x)

x.float()

float(x)
Cannot convert a string to float datatype

No, the answer is incorrect.


Score: 0
Accepted Answers:
float(x)

1 point

Which of the following variable names are INVALID in Python?

1_variable

variable_1

variable_*

variable1

Yes, the answer is correct.


Score: 1
Accepted Answers:
1_variable

variable_*

1 point

Which of the following variable assignments would throw an error?

var1=True; var2=False;

var1=false; var2=true;

var1='True'; var2='False';

var1='true'; var2='false';

Yes, the answer is correct.


Score: 1
Accepted Answers:
var1=false; var2=true;

1 point
Predict the output of the following code

4.0

4.1

Yes, the answer is correct.


Score: 1
Accepted Answers:
4.0

1 point

The value of the variable result after running the code snippet below is ____

89.0

17.0

737.0

96.0

Yes, the answer is correct.


Score: 1
Accepted Answers:
17.0

1 point

Which Python library is commonly used for data wrangling and manipulation?

Numpy

Pandas

scikit

Math

Yes, the answer is correct.


Score: 1
Accepted Answers:
Pandas

Week 1 : Practice Assignment 1


Your last recorded submission was on 2022-07-29, 13:36 IST

Note : This assignment is only for practice purpose and it will not be counted towards the Final
score

1 point

Which of the following is a valid variable name?

.ram2

ram.2

ram_2

2ram00

1 point

Which of the following statement is invalid?

m_n_q = 3500

m.n.q = 3500, 3600, 3700

m,n,q = 3500, 3600, 3700

mnq = 350036003700

1 point

Assignment operator used in Python is: -

==
>>

<-

1 point

Which command would you use to find the data type of a variable

data( )

type( )

typeof( )

str( )

1 point

What will be the output after the following statements are executed?

X=300

Y= 17

X%=Y

print(X)

11

17.6

300

17

Week 2 : Assignment 2
Assignment submitted on 2022-08-10, 22:50 IST
Types of questions:

● MCQs - Multiple Choice Questions (a question has only one correct answer)

● MSQs –

o Multiple Select Questions (a question can have two, three or four correct options)

o In this case, equal weightage must be given to all options

1 point
Which of the following function(s) can be used to resize a NumPy array in Python from the given options.

array.shape(reshape)

array.reshape(shape)

numpy.reshape(array, shape)

numpy.reshape(shape, array)

Partially Correct.
Score: 0.5
Accepted Answers:
array.reshape(shape)

numpy.reshape(array, shape)

1 point

Create the tuples given below:

tuple_1 = (1,5,6,7,8)
tuple_2 = (8,9,4)

Identify which of the following options does not work on the given tuples

sum(tuple_1)

len(tuple_2)

tuple_2 + tuple_1

tuple_1[3] = 45

Yes, the answer is correct.


Score: 1
Accepted Answers:
tuple_1[3] = 45

0 points

Create a sequence of numbers from 15 to 25 and increment by 4. What is the index of the element 19?

Yes, the answer is correct.


Score: 0
Accepted Answers:
1

1 point
Consider a variable job = "chemist". Which of the following expression(s) will retrieve the last character
from the string?

job[7]

job[len(job) - 1]

job[5:6]

job[- 1]

Yes, the answer is correct.


Score: 1
Accepted Answers:
job[len(job) - 1]

job[- 1]

1 point

Given a list, ls = [1, 2, 3, 3, 2, 3, 1, 4, 5, 6, 5, 6, 3, 2, 1, 1, 1, 7, 8, 9, 7, 8, 9, 7, 8, 9, 7, 8, 9, 10, 10, 1, 2, 3,


9, 10], which of the following would be the most efficient method in determining the unique elements
present in ls?

By converting ls into a NumPy array, and applying relevant methods

By converting ls into a set

By iterating through ls, and doing appropriate manipulations

None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
By converting ls into a set

1 point

Which of the following data structure(s) can be used as a key while creating a dictionary?

list

str

set

None

Partially Correct.
Score: 0.5
Accepted Answers:
str

None

1 point

Given a dictionary, states = {'Tamil Nadu': 'TN', 'Karnataka': 'KA', 'Kerala': 'KL', 'Maharashtra': 'MH'},
which of the following command(s) is used to remove the key-value pair 'Karnataka': 'KA' from it?
del states[‘Karnataka’]

states.popitem(‘Karnataka’)

states.pop(‘Karnataka’)

del states[‘Karnataka’:’KA’]

Yes, the answer is correct.


Score: 1
Accepted Answers:
del states[‘Karnataka’]

states.pop(‘Karnataka’)

1 point

Which of the following is valid to declare a string literal Shin’ichi to a variable?

“Shin’ichi”

‘Shin”ichi’

‘Shin’ichi’

None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
“Shin’ichi”

1 point

Which of the following commands can be used to create a NumPy array?

np.array()

np.zeros()

np.empty()

All of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
All of the above

1 point

Given a NumPy array, arr = np.array([[5,9,10], [7,2,6], [12,8,0]]), find the correct command from the
following options to get an output array as [24 15 20]?

np.sum(arr)

np.sum(arr, axis = 0)

np.sum(arr, axis = 1)
None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
np.sum(arr, axis = 1)

Week 2 : Practice Assignment 2


Your last recorded submission was on 2022-08-07, 17:16 IST

Note : This assignment is only for practice purpose and it will not be counted towards the Final
score

1 point

Variable ‘a’ is defined as


a = ‘gOOd moRning’
Command to convert ‘a’ from ‘gOOd moRning’ to ‘Good Morning’ is:-

a.upper( )

a.lower( )

a.string( )

a.title( )

1 point

Create a list called “Stationery” with the below data

Product = ['Pencil', 'Pen', 'Eraser', 'Pencil Box', 'Scale']

Price= [5, 10, 2, 20, 12]

Brand = ['Camlin', 'Rotomac', 'Nataraj', 'Camel', 'Apsara']

Stationery = [Product, Price, Brand]

The command to add “Notebook” as the first element inside the first level of the list “Stationery” is:-

Stationery[0].append('Notebook')

Stationery[0].insert(0,'Notebook')

Stationery[0][1] = "Notebook"

Stationery[0].extend('Notebook')

1 point

The method to clear all the elements from a Set is:-


remove( )

discard( )

clear( )

delete()

1 point

Consider the list,

Mylist =[‘a’, ‘a’, ‘b’, ‘b’, ‘b’, ‘c’, ‘c’, ‘d’, ‘e’]

The output of the code: Mylist.index(‘d’) is

1 point

Which of the following python sequence data type is immutable?

list

dictionary

tuple

array

Week 3 : Assignment 3
The due date for submitting this assignment has passed.

Due on 2022-08-17, 23:59 IST.

Assignment submitted on 2022-08-12, 05:32 IST


Types of questions:

● MCQs - Multiple Choice Questions (a question has only one correct answer)

● MSQs –
● Multiple Select Questions (a question can have two, three or four correct options)

● In this case, equal weightage must be given to all options

Read the comma-separated values file hotel_bookings.csv as a dataframe data_hotel and


answer questions 1 - 3. Please refer to Hotel_Bookings_Data_Description.pdf for data and variable
description.

1 point

Choose the appropriate command(s) to filter those booking details whose reservation_status are a No-
show?

Yes, the answer is correct.


Score: 1
Accepted Answers:

1 point

From the same data, find how many bookings were not canceled in the year 2017?

9064

6231

9046

None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
9064

1 point
From the total bookings that were made in 2017 and not canceled, which month had the highest number
of repeated guests?

July

February

January

None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
January

Read the 'flavors_of_cocoa.csv’ file as a dataframe ‘dt_cocoa’ and answer questions 4-7.

1 point

Which of the following commands can be used to create a variable Flag, and set the values
as Premium when the rating is equal to or greater than 3.25, and otherwise as Regular?

None of the above


Yes, the answer is correct.
Score: 1
Accepted Answers:

1 point

Which instruction can be used to impute the missing values in the column Review Data from the
dataframe dt_cocoa by grouping the records company – wise?

None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:

1 point

After checking the data summary, which feature requires a data conversion considering the data values
held?

Rating

Review Date

Company

None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
Review Date

1 point

What is the maximum average rating for the cocoa companies based out of Guatemala?

3.5

3.42

None of the above


Yes, the answer is correct.
Score: 1
Accepted Answers:
3.42

1 point

Which pandas function is used to stack the dataframes vertically?

pd.merge()

pd.concat()

join()

None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
pd.concat()

Assume a pandas dataframe df_weather which when printed is as shown below:

1 point

Of the following set of statements, which of them can be used to extract the column Direction as a
separate dataframe?

None of the above

No, the answer is incorrect.


Score: 0
Accepted Answers:
1 point

A file “Students.csv” contains the attendance and scores of three separate students. This dataset is
loaded into a dataframe df_study and a cross table is obtained from the same dataframe which results in
the following output

Which one of these students’ average score across all subjects was the lowest? Which subject has the
highest average score across students?

Harini, Maths

Sathi, Maths

Harini, Physics

Rekha, Maths

Yes, the answer is correct.


Score: 1
Accepted Answers:
Sathi, Maths

Week 3 : Practice Assignment 3


Your last recorded submission was on 2022-08-14, 21:16 IST

Note : This assignment is only for practice purpose and it will not be counted towards the Final
score

1 point

Which of the following can be inferred from scatter plot of ‘mpg’ (Miles per gallon) vs ‘wt’ (Weight of car)
from the dataset mtcars.csv?

As weight of the car increases, the mpg decreases


As weight of the car increases, the mpg increases

There is no relation between weight of the car and mpg

When weight increases, mpg increases exponentially

1 point

Plot a boxplot for “price” vs “cut” from the dataset “diamond.csv”. Which of the categories
under “cut” have the highest median price?

Good

Ver Good

Premium

Fair

1 point

In the churn.csv dataframe, what are the total no. of missing values for the variable TotalCharges?

10

23

15

1 point

The command used for line plot from the package Matplotlib?

plot( )

line( )

join( )

plt( )

1 point

The probability of two different events occurring at the same time is known as

Marginal probability

Conditional probability

Joint probability

Marginal and Joint probability


Week 4 : Assignment 4
The due date for submitting this assignment has passed.

Due on 2022-08-24, 23:59 IST.

Assignment submitted on 2022-08-21, 11:02 IST


1 point

The power consumption of an individual house in a residential complex has been recorded for the previous
year. This data is analysed to predict the power consumption for the next year. Under which type of
machine learning problem does this fall under?

Classification

Regression

Reinforcement Learning

None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
Regression

1 point

A dataset contains data collected by the Tamil Nadu Pollution Control Board on environmental conditions
(154 variables) from one of their monitoring stations. This data is further analyzed to understand the most
significant factors that affect the Air Quality Index. The predictive algorithm that can be used in this situation
is ___________.

Logistic Regression

Simple Linear Regression

Multiple Linear Regression

None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
Multiple Linear Regression

1 point

A regression model with the following function y = 60 + 5.2x was built to understand the impact of humidity
(x) on rainfall (y). The humidity this week is 30 more than the previous week. What is the predicted
difference in rainfall?

156 mm

15.6 mm

-156 mm
None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
156 mm

Read the information given below and answer the questions from 4 to 7:

Data Description:

An automotive service chain is launching its new grand service station this weekend. They offer to

service a wide variety of cars. The current capacity of the station is to check 315 cars thoroughly per

day. As an inaugural offer, they claim to freely check all cars that arrive on their launch day, and

report whether they need servicing or not!

Unexpectedly, they get 450 cars. The servicemen will not work longer than the working hours, but

the data analysts have to!

Can you save the day for the new service station?

How can a data scientist save the day for them?

He has been given a data set, ‘ServiceTrain.csv’ that contains some attributes of the car that can be

easily measured and a conclusion that if a service is needed or not.

Now for the cars they cannot check in detail, they measure those attributes and store them in

‘ServiceTest.csv’

Problem Statement:

Use machine learning techniques to identify whether the cars require service or not

Read the given datasets ‘ServiceTrain.csv’ and ‘ServiceTest.csv’ as train_data and test_data
respectively and import all the required packages for analysis.

1 point
Which of the following machine learning techniques would NOT be appropriate to solve the problem given
in the problem statement?

kNN

Random Forest

Logistic Regression

Linear regression

Yes, the answer is correct.


Score: 1
Accepted Answers:
Linear regression

1 point

The plot shown below denotes the percentage distribution of the target column values within
the train_data dataframe. Which of the following options are correct?

Yes > 20, No > 60

No > 70, Yes > 20

Yes > 30, No > 70

Yes > 70, No > 30

Yes, the answer is correct.


Score: 1
Accepted Answers:
No > 70, Yes > 20
Prepare the data by following the steps given below, and answer questions 6 and 7

● Encode categorical variable, Service - Yes as 1 and No as 0 for both the train and test datasets

● Split the set of independent features and the dependent feature on both the train and test datasets

● Set random_state for the instance of the logistic regression class as 0

1 point

After applying logistic regression, what is/are the correct observations from the resultant confusion matrix?

True Positive = 29, True Negative = 94

True Positive = 94, True Negative = 29

False Positive = 5, True Negative = 94

None of the above

No, the answer is incorrect.


Score: 0
Accepted Answers:
True Positive = 29, True Negative = 94

False Positive = 5, True Negative = 94

1 point

The logistic regression model built between the input and output variables is checked for its prediction
accuracy of the test data. What is the accuracy range (in %) of the predictions made over test data?

60 - 79

90 - 95

30 – 59

80 – 89

Yes, the answer is correct.


Score: 1
Accepted Answers:
90 - 95

1 point

How are categorical variables preprocessed before model building?

Standardization

Dummy variables

Correlation

None of the above


Yes, the answer is correct.
Score: 1
Accepted Answers:
Dummy variables

a. The Global Happiness Index report contains the Happiness Score data with multiple features
(namely the Economy, Family, Health, and Freedom) that could affect the target variable value.

Prepare the data by following the steps given below, and answer question 9

 Split the set of independent features and the dependent feature on the given dataset
 Create training and testing data from the set of independent features and dependent
feature by splitting the original data in the ratio 3:1 respectively, and set the value
for random_state of the training/test split method’s instance as 1

1 point

A multiple linear regression model is built on the Global Happiness Index dataset “GHI_Report.csv”. What
is the RMSE of the baseline model?

2.00

0.50

1.06

0.75

Yes, the answer is correct.


Score: 1
Accepted Answers:
1.06

1 point

X and Y are two variables that have a strong linear relationship. Which of the following statements are
incorrect?

There cannot be a negative relationship between the two variables.

The relationship between the two variables is purely causal.

One variable may or may not cause a change in the other variable.

The variables can be positively or negatively correlated with each other.

No, the answer is incorrect.


Score: 0
Accepted Answers:
There cannot be a negative relationship between the two variables.

The relationship between the two variables is purely causal.


Week 4 : Practice Assignment 4
Assignment not submitted

Note : This assignment is only for practice purpose and it will not be counted towards the Final
score

1 point

Which of the following functions can be used to split the data into train and test?

pandas.train_test_split( )

numpy.train_test_split( )

sklearn.model_selection.train_test_split( )

sklearn.train_test_split( )

1 point

The function used to perform k-Nearest Neighbors classification is: -

sklearn.KNN

sklearn.KNearestClassifier

sklearn.neighbors.KNeighborsClassifier( )

sklearn.neighbors.KNeighborsRegressor( )

1 point

A Linear Regression model is said to be good when the R-squared value tends to

-1

0.5

1 point

The Gini coefficient ranges from

0 to 1

-1 to 0

-1 to 1

None of the above


1 point

What is heteroscedasticity as used to assess a Linear Regression model?

Linear regression with varying error terms

Linear regression with constant error terms

Linear regression with no error terms

All the above

Non-Proctored Exam Session1


Assignment submitted on 2022-09-16, 12:56 IST
Types of questions:

●MCQs - Multiple Choice Questions (a question has only one correct answer)
●MSQs –
o Multiple Select Questions (a question can have two, three or four correct options)
o In this case, equal weightage must be given to all options
●True/ False - The learner has to choose either true or false from a given statement.

Follow the instructions given below and answer the questions

i. Read the given dataset apy_1.csv


ii. Drop the rows with missing values if any

1 point
Which of the following statement(s) is/are TRUE?

The overall production during the Kharif season is 1,195,933,000 (approx.)


The overall production during the Summer season is 34,549,800 (approx.)
The overall production during the Autumn season is 19,690,400 (approx.)

None of the above


Yes, the answer is correct.
Score: 1
Accepted Answers:
The overall production during the Kharif season is 1,195,933,000 (approx.)
The overall production during the Autumn season is 19,690,400 (approx.)
1 point
Which of the following set of crop(s) is/are produced during the Whole year season? (select option with all
that apply)

Sugarcane, Garlic, Mango, Arhar/Tur


Paddy, Maize, Moong (Green Gram), Onion, Apple
Banana, Coriander, Gram, Rapeseed & Mustard, Sweet lime

Cabbage, Bitter Gourd, Masoor, Cucumber


Yes, the answer is correct.
Score: 1
Accepted Answers:
Sugarcane, Garlic, Mango, Arhar/Tur
Cabbage, Bitter Gourd, Masoor, Cucumber
1 point
Which district in India has the lowest crop production?

Coimbatore
Thrissur
Kannur

Mumbai
Yes, the answer is correct.
Score: 1
Accepted Answers:
Mumbai
1 point
During which year did West Bengal have the highest crop production?

2013
2007
1997

2006
Yes, the answer is correct.
Score: 1
Accepted Answers:
2007
1 point
Which state in India has the second highest crop production? (Overall, for all years)

Andhra Pradesh
Tamil Nadu
Kerala

Uttar Pradesh
Yes, the answer is correct.
Score: 1
Accepted Answers:
Tamil Nadu
1 point
How are the variables Area and Production correlated?

There exists a positive correlation between Area and Production


There exists a negative correlation between Area and Production
Area and Production are not correlated
Cannot be determined
Yes, the answer is correct.
Score: 1
Accepted Answers:
Area and Production are not correlated
1 point
What is the average crop production?

17,065,810.29 (approx.)
50,857.44 (approx.)
242,361.35 (approx.)

621,031.95 (approx.)
Yes, the answer is correct.
Score: 1
Accepted Answers:
621,031.95 (approx.)
1 point
What is the standard deviation of production?

17,497,558.29 (approx.)
50,857.44 (approx.)
242,361.35 (approx.)

582,503.45 (approx.)
Yes, the answer is correct.
Score: 1
Accepted Answers:
17,497,558.29 (approx.)
1 point
Due to some unknown reasons, the crop production for only two states was recorded for 2015. Which
states are they?

Tamil Nadu and Kerala


Kerala and Andhra Pradesh
Odisha and Sikkim

Sikkim and Punjab


Yes, the answer is correct.
Score: 1
Accepted Answers:
Odisha and Sikkim
1 point
The top three produced crops in the year 2005 are ______

Wheat, Potato, Rice


Coconut, Potato, Sugarcane
Coconut, Sugarcane, Rice

Sugarcane, Rice, Wheat


Yes, the answer is correct.
Score: 1
Accepted Answers:
Coconut, Sugarcane, Rice
1 point
State whether the given statements are True or False

I.Crop year and Area are weakly correlated


II.Crop year and Production are strongly correlated

I - True, II - False
I - False, II - True
I - False, II - False

I - True, II - True
No, the answer is incorrect.
Score: 0
Accepted Answers:
I - True, II - False
1 point
Which year has the lowest crop production?

2011
2010
2015

2009
Yes, the answer is correct.
Score: 1
Accepted Answers:
2015
1 point
The crop that Maharashtra produced the most is ________

Sugarcane
Rice
Banana

Coconut
Yes, the answer is correct.
Score: 1
Accepted Answers:
Sugarcane

Prepare the dataset further by following the steps given below:


●Ensure the datatypes of the columns are appropriate
●Drop all the variables except “Area” and “Production”
●Split the data into the train (80%) and test (20%) sets, and set the random state for the train-test
split instance as 111
Build a linear regression model using the training dataset by having “Area” as the independent variable and
“Production” as the dependent variable. Using the model that has been built, answer the following
question.

1 point
What does the R-squared value calculated for the model built signify?

The model is good as the R-squared-value is close to 1


The model is not good as the R-squared-value is close to 0
R-squared-value does not show the performance of the model

R-squared-value cannot be computed with this data


Yes, the answer is correct.
Score: 1
Accepted Answers:
The model is not good as the R-squared-value is close to 0
1 point
For the model that has been built using the information given above Q14, the RMSE of the linear
regression model is ___________

14708129.51738 (approx)
18962432.76753 (approx)
14718129.43235968 (approx)

14708029.87934857 (approx)
No, the answer is incorrect.
Score: 0
Accepted Answers:
18962432.76753 (approx)

Session 2 - Sep 16 (8 PM to 11
PM )
The due date for submitting this assignment has passed.

Due on 2022-09-16, 23:00 IST.

Assignment submitted on 2022-09-16, 22:59 IST


Types of questions:

●MCQs - Multiple Choice Questions (a question has only one correct answer)

●MSQs –

o Multiple Select Questions (a question can have two, three or four correct options)
o In this case, equal weightage must be given to all options

●True/ False - The learner has to choose either true or false from a given statement.

Follow the instructions given below and answer the questions

i.Read the given dataset apy_2.csv

ii.Drop the rows with missing values, if any

1 point

Which of these crops are produced during the Summer season? (select option with all that apply)

Arecanut, Arhar/Tur, Bajra, Castor seed

Paddy, Maize, Moong (Green Gram), Onion, Sunflower

Banana, Coriander, Gram, Rapeseed & Mustard

Rice, Sugarcane, Paddy, Tomato

Yes, the answer is correct.


Score: 1
Accepted Answers:
Paddy, Maize, Moong (Green Gram), Onion, Sunflower

1 point

During which year did Haryana have the highest crop production?

2013

2011

1997

2008

No, the answer is incorrect.


Score: 0
Accepted Answers:
2008

1 point

The maximum and minimum area for production were in the years?

1997 and 2014

1998 and 2015

1997 and 2015

1999 and 2005


Yes, the answer is correct.
Score: 1
Accepted Answers:
1997 and 2015

1 point

Which state in India had the second lowest crop production? (overall, for all years)

Meghalaya

Chandigarh

Mizoram

Manipur

Yes, the answer is correct.


Score: 1
Accepted Answers:
Mizoram

1 point

What were the top three produced crops in the year 2012?

Wheat, Potato, Rice

Coconut, Potato, Sugarcane

Coconut, Sugarcane, Rice

Rice, Sugarcane, Maize

Yes, the answer is correct.


Score: 1
Accepted Answers:
Coconut, Sugarcane, Rice

1 point

What is the standard deviation for Area of production?

52957.44 (approx.)

12167.42 (approx.)

49177.60 (approx.)

48848.27 (approx.)

No, the answer is incorrect.


Score: 0
Accepted Answers:
49177.60 (approx.)

1 point

Which is the crop that gave the highest production to the state of Andhra Pradesh?

Sugarcane
Wheat

Banana

Coconut

Yes, the answer is correct.


Score: 1
Accepted Answers:
Coconut

1 point

Which of the following statements is true? (Select all that applies)

The overall production during the Kharif season is 2,029,970,000 (approx.)

The overall production during the Summer season is 51,992,900 (approx.)

The overall production during the Autumn season is 14,413,770 (approx.)

The overall production during the Kharif season is 1,282,056,700 (approx.)

Yes, the answer is correct.


Score: 1
Accepted Answers:
The overall production during the Summer season is 51,992,900 (approx.)

The overall production during the Kharif season is 1,282,056,700 (approx.)

1 point

Which state has the lowest area of production?

Puducherry

Chandigarh

Kerala

Goa

Yes, the answer is correct.


Score: 1
Accepted Answers:
Chandigarh

1 point

What is the mean for the area of production?

17065.81 (approx.)

12035.39 (approx.)

11868.49 (approx.)

58250.34 (approx.)
No, the answer is incorrect.
Score: 0
Accepted Answers:
12035.39 (approx.)

1 point

What is the correlation coefficient between Area and Production?

37.686

0.37686

3.7686

0.037686

Yes, the answer is correct.


Score: 1
Accepted Answers:
0.037686

1 point

The crops that had the highest production (in the correct order) were?

Coconut, Sugarcane, Cucumber, Potato, Rice

Gram, Jute, Soya bean, Maize, Cotton

Coconut, Sugarcane, Rice, Wheat, Potato

Sugarcane, Wheat, Soya bean, Potato, Coconut

Yes, the answer is correct.


Score: 1
Accepted Answers:
Coconut, Sugarcane, Rice, Wheat, Potato

1 point

Which is the only crop that has the highest production during autumn, summer, and winter?

Rice

Maize

Paddy

Jute

Yes, the answer is correct.


Score: 1
Accepted Answers:
Rice
Prepare the dataset further by following the steps given below:

●Ensure the datatypes of the columns are appropriate

●Drop all the variables except “Area” and “Production”

●Split the data into the train (70%) and test (30%) sets, and set the random state for the train-test
split instance as 42

Build a linear regression model using the training dataset by having “Area” as the independent variable and
“Production” as the dependent variable. Using the model that has been built, answer the following
question.

1 point

The Root mean square value of the Linear regression model is

13850999.74575 (approx)

1001531.33109 (approx)

13524820.12533 (approx)

14599645.26554 (approx)

Yes, the answer is correct.


Score: 1
Accepted Answers:
13850999.74575 (approx)

1 point

The MAE of the Linear regression model is

18529629.51147 (approx)

827676.37303 (approx)

13524820.12533 (approx)

112599645.26554 (approx)

Yes, the answer is correct.


Score: 1
Accepted Answers:
827676.37303 (approx)

You might also like