# NPTEL Python for Data Science Assignment 1 Answers 2022 NPTEL Python for Data Science ASSIGNMENT 1 Answers:- Hello students in this article we are going to share NPTEL Python for Data Science assignment week 1 answers. All the Answers provided below to help the students as a reference, You must submit your assignment at your own knowledge.

### About Python for Data Science Course:-

Operating systems (OS) provide the crucial interface between a computer’s hardware and the applications that run on it. It allows us to write programs without bothering much about the hardware. It also ensures that the computer’s resources such as its CPU, hard disk, and memory, are appropriately utilized. In this course, we dwell into how the OS manages to do all this in an efficient manner. This is an introductory course, for students with prior knowledge of computer organization

### Criteria to get Certificate:-

This course is a week 12 course the best of 8 out 12 assignments marks will be calculated for final result.

Below are mentioned criteria for final result

Average assignment score = 25% of average of best 6 assignments out of the total 8 assignments given in the course.
Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.

Below you can find NPTEL Python for Data Science Assignment 1 Answers

### NPTEL Python for Data Science Assignment 1 Answers 2022:-

Q1. What is the output of the following code?

a. 12
b. 58
c. 70
d. Error: Invalid operation, unsupported operator ‘+’ used between ‘int’ and ‘str’

Q2. 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?

a. int, int
b. float, float
c. float, int
d. int, float

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

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

a. True
b. False

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

a. str(float,x)
b. x.float()
C. float(x)
d. Cannot convert a string to float datatype

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

a. 1_variable
b. variable_1
C. variable_*
d. variable1

Q7. Which of the following variable assignments would throw an error?

a. var1=True; var2=False;
b. var1=false; var2=true;
c. var1=’True’; var2=’False’;
d. var1=’true’; var2=’false’;

Q8. Predict the output of the following code

a. 4
b. 4.0
C. 5
d. 4.1

Q9. The value of the variable result after running the code snippet below is __

a. 89.0
b. 17.0
C. 737.0
d. 96.0

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

a. Numpy
b. Pandas
C. Scikit
d. math