NPTEL Python For Data Science Assignment 1 Answers 2023

NPTEL Python For Data Science Assignment 1 Answers 2023

Hello learners In this article we are going to discuss NPTEL Python For Data Science Assignment 1 Answers. All the Answers provided below to help the students as a reference, You must submit your assignment with your own knowledge and use this article as reference only.

About the course:-

The course aims at equipping participants to be able to use python programming for solving data science problems.

Assignment No.Answers
Python For Data Science Assignment 1 Click Here
Python For Data Science Assignment 2 Click Here
Python For Data Science Assignment 3 Click Here
Python For Data Science Assignment 4 Click Here
Python For Data Science Assignment 5 Click Here
Python For Data Science Assignment 6 Click Here
Python For Data Science Assignment 7 Click Here
Python For Data Science Assignment 8 Click Here
Python For Data Science Assignment 9 Click Here
Python For Data Science Assignment 10 Click Here
Python For Data Science Assignment 11 Click Here
Python For Data Science Assignment 12 Click Here

NPTEL Python For Data Science Assignment 1 Answers 2023:

1. What is the output of the following code?
A1Q1

  • 36
  • 121212
  • 123
  • Error: Invalid operation, unsupported operator ‘*’ used between ‘int’ and ‘str’
Answer :- 

2. What is the output of the following code?
A1Q2

  • -1
  • -2
  • -1.28
  • 1.28
Answer :- 

3. Consider a following code snippet. What is a data type of y?
A1Q3

  • int
  • float
  • str
  • Code will throw an error.
Answer :- 

4. Which of the following variable names are INVALID in Python?

  • 1_variable
  • variable_1
  • variable1
  • variable#
Answer :- 

5. While naming the variable, use of any special character other than underscore(_) ill throw which type of error?

  • Syntax error
  • Key error
  • Value error
  • Index error
Answer :- 

6. Let x = “Mayur”. Which of the following commands converts the ‘x’ to float datatype?

  • str(float,x)
  • x.float()
  • float(x)
  • Cannot convert a string to float data type
Answer :- 

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

  • Numpy
  • Pandas
  • scikit
  • Math
Answer :- 

8. Predict the output of the following code.
A1Q8

  • 12.0
  • 12
  • 11.667
  • 11
Answer :- 

9. 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
Answer :- 

10. Let a = 5 (101 in binary) and b = 3 (011 in binary). What is the result of the following operation?
A1Q10n

  • 3
  • 7
  • 5
  • 1
Answer :-