Week 2: Assignment 2: Assignment Submitted On 2023-08-05, 11:39 IST

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Business Analytics & Text Mining Modeling Using Python - - Unit 4 - Week 2 21/09/23, 10:47 AM

(https://swayam.gov.in) nidhuraji88@gmail.com

(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)

Mentor (student/mentor) Mentee List (student/mentee) Review Assignment (assignment_review)

If already registered, click


to check your payment
status Week 2 : Assignment 2
The due date for submitting this assignment has passed.
Due on 2023-08-09, 23:59 IST.
Course outline
Assignment submitted on 2023-08-05, 11:39 IST
How does an NPTEL 1) Which of the following(s) are the correct code statement(s) for Hello world program in Python? 1 point
online course work? ()
print('Hello world')
Week 0 () print(""Hello world"")
print(''Hello world'')
Week 1 () print(“Hello world”)

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

Yes, the answer is correct.


Solution For Week 2 (unit?
Score: 1
unit=25&lesson=112)
Accepted Answers:
v1??
Week 3 ()
v1?

Week 4 () 4) How to get list of magic commands? 1 point

help(lsmagic)
Week 5 ()
%magic
help(magic)
Week 6 ()
%lsmagic

Week 7 () Yes, the answer is correct.


Score: 1
Accepted Answers:
Week 8 () %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

Yes, the answer is correct.


Score: 1
Accepted Answers:
f??

6) Which statement will correctly assign x as an infinite number? 1 point

x = pos_infinity
x = float(‘inf’)
x = inf(‘inf’)
x = infinity

Yes, the answer is correct.


Score: 1
Accepted Answers:
x = float(‘inf’)

7) By default, how many spaces are code intended when using the Python IDLE? 1 point

2
4
3
5

Yes, the answer is correct.


Score: 1
Accepted Answers:
4

8) How to separate multiple statements on a single line in Python? 1 point

, (comma)
. (dot)
: (colon)
; (semicolon)

Yes, the answer is correct.


Score: 1
Accepted Answers:
; (semicolon)

9) Which one of the following is the core library for data visualization in Python? 1 point

matplotlib
seaborn
pandas
numpy

Yes, the answer is correct.


Score: 1
Accepted Answers:
matplotlib

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

Yes, the answer is correct.


Score: 1
Accepted Answers:
break

https://onlinecourses.nptel.ac.in/noc23_mg104/unit?unit=25&assessment=103 Page 2 of 2

You might also like