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 :- For AnswerClick Here

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 :- For AnswerClick Here

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 :- For AnswerClick Here

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 :- For AnswerClick Here