7/31/24, 7:13 PM Python for Data Science - - Unit 3 - Week 1
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
[email protected]
NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Python for Data Science (course)
Course Week 1: Assignment 1
outline The due date for submitting this assignment has passed.
Due on 2023-02-08, 23:59 IST.
How does an
NPTEL
online
Assignment submitted on 2023-02-02, 19:49 IST
course 1) Which of the following is/are the correct ways of naming variables in Python? 1 point
work? ()
2_max = 5
Week 0 () max_2 = 5
max2 = 5
Week 1 ()
max @2 = 5
Introduction to Yes, the answer is correct.
Python for Score: 1
Data Science Accepted Answers:
(unit? max_2 = 5
unit=18&lesso max2 = 5
n=19)
Introduction to 2) What does 5%11 will evaluate to 1 point
Python (unit?
unit=18&lesso 1
n=20) 5
Introduction to 0
Spyder - Part 1 Syntax error
(unit?
unit=18&lesso Yes, the answer is correct.
Score: 1
n=21)
Accepted Answers:
Introduction to 5
Spyder - Part 2
(unit? 3) What does 4//7 evaluate to 1 point
unit=18&lesso
n=22) 0
https://onlinecourses.nptel.ac.in/noc23_cs21/unit?unit=18&assessment=102 1/5
7/31/24, 7:13 PM Python for Data Science - - Unit 3 - Week 1
Variables and 1
Datatypes
0.0
(unit?
unit=18&lesso 4
n=23) Yes, the answer is correct.
Score: 1
Operators
Accepted Answers:
(unit?
0
unit=18&lesso
n=24)
What will be the output of the following code snippet?
Setup Guide
(unit? 4) (i). 0.5 points
unit=18&lesso
n=25)
Week 1:
Lecture slides
(unit?
unit=18&lesso
n=26)
Week 1-FAQs
(unit?
unit=18&lesso
n=27)
300
Practice: Week 100200
1: Practice
‘100’ + ‘200’
Assignment 1
(assessment? ‘100 + 200’
name=94)
Yes, the answer is correct.
Score: 0.5
Quiz: Week 1:
Assignment 1 Accepted Answers:
(assessment? 100200
name=102)
5) (ii). 0.5 points
Week 1
Feedback
Form : Python
for Data
Science (unit?
unit=18&lesso
n=28)
Week 2 ()
Week 3 ()
Week 4 ()
Download
300
Videos ()
100200
Books () ‘100’ + ‘200’
‘100 + 200’
https://onlinecourses.nptel.ac.in/noc23_cs21/unit?unit=18&assessment=102 2/5
7/31/24, 7:13 PM Python for Data Science - - Unit 3 - Week 1
Yes, the answer is correct.
Text Score: 0.5
Transcripts () Accepted Answers:
300
6) What is the type of the following expression? 1 point
1+4/2
int
float
bool
str
Yes, the answer is correct.
Score: 1
Accepted Answers:
float
7) What is the type of the following expression? 0 points
str
bool
True
False
Yes, the answer is correct.
Score: 0
Accepted Answers:
True
8) What is the output of the following code snippet? 1 point
32
44
40
36
Yes, the answer is correct.
Score: 1
Accepted Answers:
40
9) Which of the arithmetic operators given below cannot be used with ‘strings’ in 1 point
Python?
*
-
+
https://onlinecourses.nptel.ac.in/noc23_cs21/unit?unit=18&assessment=102 3/5
7/31/24, 7:13 PM Python for Data Science - - Unit 3 - Week 1
All of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
-
10) Consider the list of instructions and resulting outputs given below. Pick the set that 1 point
is incorrect.
4
2
1, 3
1, 3, 4
All are correct
Yes, the answer is correct.
Score: 1
Accepted Answers:
2
11) Two variables Xand Y were assigned the following values initially: X = 3 and Y = 6. 1 point
Which of the following statements will help swap the values between these two variables?
Y=X
X=Y
X=Y
https://onlinecourses.nptel.ac.in/noc23_cs21/unit?unit=18&assessment=102 4/5
7/31/24, 7:13 PM Python for Data Science - - Unit 3 - Week 1
X=Y
Y=X
X, Y = Y, X
Yes, the answer is correct.
Score: 1
Accepted Answers:
X, Y = Y, X
https://onlinecourses.nptel.ac.in/noc23_cs21/unit?unit=18&assessment=102 5/5