Assessment submitted.
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
X
ashpinpabi@gmail.com
NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Business Analytics & Text Mining Modeling using
Python (course)
Click to register
for Certification
exam
Thank you for taking the Week 2 :
Assignment 2.
(https://examform.nptel.ac.in/2025_10/exam_form/dashboard)
If already
registered, click
to check your
Week 2 : Assignment 2
payment status Your last recorded submission was on 2025-08-02, 15:20 Due date: 2025-08-06, 23:59 IST.
IST
1) Which of the following(s) are the correct code statement(s) for Hello world program 1 point
Course in Python?
outline
print('Hello world')
About print(""Hello world"")
NPTEL () print(“Hello world”)
none of the above
How does an
NPTEL 2) Which of the following will not result in declaring x a data type of int? 1 point
online
course x = int(10)
work? ()
x = float(z)
x = int(float(10))
Week 0 ()
x=5
Week 1 ()
3) How to seek type info about a Python object, v1 = [1, 2, 3]? 1 point
Week 2 ()
help(v1)
Python for v1??
Analytics Part
v1?
III (unit?
unit=25&lesso v1???
n=26)
4) How to get list of magic commands? 1 point
Python for
Analytics Part
help(lsmagic)
IV (unit?
unit=25&lesso %magic
Assessment
n=27)submitted.
X help(magic)
Python for
%lsmagic
Analytics Part
V (unit? 5) How to show the source code of the following function? 1 point
unit=25&lesso def f(x, y, z):
n=28) return (x + y) / z
Built in
Capabilities of
Python I (unit?
help(f)
unit=25&lesso f??
n=29)
f1?
Built in f???
Capabilities of
Python II
6) Which statement will correctly assign x as an infinite number? 1 point
(unit?
unit=25&lesso x = pos_infinity
n=30)
x = float(‘inf’)
Quiz: Week 2
x = inf(‘inf’)
: Assignment
2 x = infinity
(assessment?
name=154) 7) By default, how many spaces are code intended when using the Python IDLE? 1 point
Week 3 () 2
4
Text
3
Transcripts
() 5
Books () 8) How to separate multiple statements on a single line in Python? 1 point
, (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 1 point
been evaluated as false?
break
exit
endpoint
stop
Assessment submitted.
You may submit any number of times before the due date. The final submission will be
X
considered for grading.
Submit Answers