[Week 1] NPTEL Data Analytics with Python Assignment Answers 2024

Join Our WhatsApp Group Join Now
Join Us On Telegram Join Now

NPTEL Data Analytics with Python Week 1 Assignment Answers 2024

1. Which of the following is never possible for variance?

  • Zero variance
  • larger than the standard deviation
  • Negative variance
  • smaller than the standard deviation
Answer :- 

2.

def m(data)

        Diff = max(data) – min(data)

         return(Diff)

The above defined data function in Python programming, will calculate the?

  • Inter quartile range
  • mode
  • median
  • range
Answer :- 

3. Bar Charts are used for :

  • Continuous data
  • Categorical data
  • both a. and b.
  • None of these
Answer :- 

4. Frequency polygons are used for:

  • Continuous data
  • Categorical data
  • both a. and b.
  • None of the above
Answer :- 

5. m is an example of which of the following?

  • A population parameter
  • sample statistic
  • population variance
  • mode
Answer :- 

6. Consider the following statements- 

Statement A : To “flatten” the dataframe, you can use the reset_index(). 

Statement B : Use the nunique() to get counts of unique values on a Pandas Series. 

  • Both statements are correct
  • Both statements are false
  • A is correct, B is false
  • B is correct, A is false
Answer :- 

7. Which of the following statements in context of drawing an excellent graph is false:

  • The graph should not contain unnecessary adornments (sometimes referred to as chart junk)
  • The scale on the vertical axis should begin at zero
  • All axes should not be properly labelled
  • The graph should contain a title
Answer :- 

8. Which of the following is not a measure of dispersion?

  • Skewness
  • Kurtosis
  • Range
  • Percentile
Answer :- 

9. Assume, you are given two lists:

    a = [1,2,3,4,5]

    b = [6,7,8,9]

The task is to create a list which has all the elements of a and b in one dimension.

    Output:

     a = [1,2,3,4,5,6,7,8,9]

Which of the following option would you choose?

  • a.append(b)
  • a.extend(b)
  • Any of the above
  • None of these
Answer :- 

10. State the following true or false?

Statement: Bimodal Data sets contains more than two modes

  • True
  • False
Answer :- 

NPTEL Data Analytics with Python Week 0 Assignment Answers 2024

1. What are the key features of python language?

  • Object- oriented
  • Concise and simple
  • Both of the above
  • None of the above
Answer :- 

2. State true or false
Statement: List in python is immutable but tupple is mutable

  • True
  • False
Answer :- 

3. For getting 3rd, 4th & 6th row of a datafile “df”in Python programming, we can write:

  • df.loc[[2,3,5]]
  •  df.loc[[3,4,5]] 
  • df.iloc[3,4,6] 
  • None of the above 
Answer :- 

4. Bar Charts are used for :

  • Continuous data
  • Categorical data
  • Both (a) & (b)
  •  None of the above
Answer :- 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top