Week 2: Assignment 2: Assignment Submitted On 2023-08-05, 11:39 IST
Week 2: Assignment 2: Assignment Submitted On 2023-08-05, 11:39 IST
(https://swayam.gov.in) [email protected]
(https://swayam.gov.in/nc_details/NPTEL)
NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Business Analytics & Text Mining Modeling Using Python (course)
Announcements (announcements) About the Course (preview) Ask a Question (forum) Progress (student/home)
Partially Correct.
Week 2 () Score: 0.5
Accepted Answers:
Python for Analytics Part print('Hello world')
III (unit? print(“Hello world”)
unit=25&lesson=26)
2) Which of the following will not result in declaring x a data type of int? 1 point
Python for Analytics Part
IV (unit? x = int(10)
unit=25&lesson=27) x = float(z)
x = int(float(10))
Python for Analytics Part V
x=5
(unit?unit=25&lesson=28)
Yes, the answer is correct.
Built in Capabilities of Score: 1
Python I (unit?
Accepted Answers:
unit=25&lesson=29) x = float(z)
Built in Capabilities of 3) How to seek type info about a Python object, v1 = [1, 2, 3]? 1 point
Python II (unit?
unit=25&lesson=30) help(v1)
v1??
Quiz: Week 2 :
v1?
Assignment 2
(assessment?name=103)
v1???
help(lsmagic)
Week 5 ()
%magic
help(magic)
Week 6 ()
%lsmagic
DOWNLOAD VIDEOS () 5) How to show the source code of the following function? 1 point
def f(x, y, z):
Weekly Feedback Link return (x + y) / z
()
help(f)
Text Transcripts () f??
f1?
Books () f???
https://onlinecourses.nptel.ac.in/noc23_mg104/unit?unit=25&assessment=103 Page 1 of 2
Business Analytics & Text Mining Modeling Using Python - - Unit 4 - Week 2 21/09/23, 10:47 AM
x = pos_infinity
x = float(‘inf’)
x = inf(‘inf’)
x = infinity
7) By default, how many spaces are code intended when using the Python IDLE? 1 point
2
4
3
5
, (comma)
. (dot)
: (colon)
; (semicolon)
9) Which one of the following is the core library for data visualization in Python? 1 point
matplotlib
seaborn
pandas
numpy
10) Which of the following can be used to exit a while loop before the condition has been evaluated as false? 1 point
break
exit
endpoint
stop
https://onlinecourses.nptel.ac.in/noc23_mg104/unit?unit=25&assessment=103 Page 2 of 2