NPTEL Python for Data Science Week 2 Assignment Answer

ABOUT THE COURSE :
The course aims at equipping participants to be able to use python programming for solving data science problems.
INTENDED AUDIENCE : Final Year Undergraduates

PRE-REQUISITES
: Knowledge of basic data science algorithms

NPTEL Python for Data Science Week 2 Assignment Answer

Course layout

Week 1:
BASICS OF PYTHON SPYDER (TOOL)

• Introduction Spyder
• Setting working Directory
• Creating and saving a script file
• File execution, clearing console, removing variables from environment, clearing environment
• Commenting script files
• Variable creation
• Arithmetic and logical operators
• Data types and associated operations

Week 2:

Sequence data types and associated operations
•        Strings
•        Lists
•        Arrays
•        Tuples
•        Dictionary
•        Sets
•        RangeNumPy
•        ndArray

Week 3:
Pandas dataframe and dataframe related operations on Toyota Corolla dataset
  1. Reading files
  2. Exploratory data analysis
  3. Data preparation and preprocessing
Data visualization on Toyoto Corolla dataset using matplotlib and seaborn libraries
  1. Scatter plot
  2. Line plot
  3. Bar plot
  4. Histogram
  5. Box plot
  6. Pair plot
Control structures using Toyota Corolla dataset
  1. if-else family
  2. for loop
  3. for loop with if break
  4. while loop
  5. Functions
Week 4: CASE STUDY
Regression
  1. Predicting price of pre-owned cars
Classification
  1. Classifying personal income

NPTEL Python for Data Science Week 2 Assignment Answer

Week 2: Assignment 2

Due date: 2025-02-05, 23:59 IST.
Assignment not submitted
1 point
Which of the following object does not support indexing?
 
 
 
 
2 points
How can you concatenate the strings “data” and “science” with a hyphen(-) between them?
 
 
 
 
2 points
What will be the output of the following code snippet?
 
 
 
 
2 points
What will be the output of the following code snippet?
 
 
 
 
2 points
What is the output of the following code?

 
 
 
 
1 point
What will be the output of the following code snippet?
 
 
 
 
2 points
Let t1 = (1, 2, “tuple”, 4) and t2 = (5, 6, 7). Which of the following will not give any error after the execution?
 
 
 
 
 
2 points
Let d = {1 : “Pyhton”, 2 : [1, 2, 3]}. Which among the following will not give the error after the execution?
 
 
 
 
1 point
Which of the following data type is immutable?
 
 
 
 
2 points
student = {‘name’: ‘Jane’, ‘age’: 25, ‘courses’: [‘Math’, ‘Statistics’]}
Which among the following will return
{‘name’: ‘Jane’, ‘age’: 26, ‘courses’: [‘Math’, ‘Statistics’], ‘phone’: ‘123-456’}
 
 
 
 
1 point
What is the output of the following code?

 
 
 
 
2 points
What will be the output of the following code snippet?
 
 
 
 

Related Posts