2022_may_python-programming2020-pattern
2022_may_python-programming2020-pattern
i. ,t
QI) eqtrect option. (% mark each)
l,' t10l
io, '
I
, Whio:ii type of prograrnming does
PYlhon supp#t?
a) Object-orienredprograrnming
b) Structuredprogramming
c) Functional
d) all ofthe mentioned
iD Which keyword is in python language?
a) function ..,}, b) def
c) tun d) define
ii, Which of the following fun*ion is used to export graph generaf in 1,,.
*"'"'
P,TO.
d
LBRARY
c) IS file ('sample.txt') \
q#ot is File ('samPle.fxt')
ix) Which of following is NOT a c math module?
a) ampoft * from math import*
c) Import math as mt math import pi,sin
x) Which of follorving regular expression cache?
pos( )
re.Subn ( )
xi) mode?
b) Thread_sleep f\,'
d) Thread - sleep
xii) an exception hardling
a) try b) except
c) accept d) fiually
xiii) a collection
- 2fi1 )
[s86sl
d
L}BRARY
,-o
xv) Tf zoo: ;'lion', 'tiger'], what willbe zaoxz? 1
a) (a) b) (,)
c) d) {a}
xvii) literal denotated by triple quote for providing the
of certain program elements.
a) b) docstrng
c) d) :,...
interface ".'';
xviii) is used to -g--#ry module in python is
a) pip b)
c) py
xix) The character the start and end of strng,
respectively.
a) $and$ * ancl &
c) ^ and. ^and$
xx) The most inrportant in Numpy is an N-dimensional ar.,t:4y
type called?
I a) narry b) Ndany
c) ndrray d) NdAnay ( )
3
ls86sl - zat
.f
s
LiB&ARY
'{ a) Write a python program for the following 13I
t i) Create list of fruits
ii) Add new fruit in list. #'^fn
iii) sort the list.
19 delete last nam list.
b) Write a the given number is even or odd.
Handle t3t
c) Explain in python r.vith example. l4l
ls86sl - 20t 4
d
LBRARY
I2l
b) Write a program to illustrate s"ilcrng rn nltmpy anay.
f. .
121
c) Create paundas ,,$jng two dimensional li s t. p erfbrm following
operations.
I4l
, Count
ii) ues in first column.
iii) n of columns in data frame
d) Exp w.r.t. oops in python.
121
D ii) Setf
I OR
D
L u)
d)
121
***
i.
._,;. "l
"\]
[s86sl - 201 5