lll ll l K23LJ 2300
V Semester B.C.A. Oegree (C.B.C.S.S. -
FegularSupplementary/
O.B.E. -
lmp.ovement) Exarninalion. November 2023
(2019 2021 Adm ssions)
Core Course
5B14BCA : PYTHON PBOGBA[t^,ttNG
SECTQN - A
I Theo!rp!1oJ>>> s1r1= pyrhon'>>>str1l ilis
dala slrlclure s an u.ordered coleclon ot e €ments wh.h
3 Lers-lr 2 3l The ollpul oi s'2 =
is he meihoo used Lo open . trte.
5 Glve afy 2 exanp €s lor buil in nodu es
is d 1b..ry nPyrhonusedlordaiivsui zato.
SECT ON. B
A.swer any 6 queslions (6.2=12)
7 D fierenlale a lLple Jrom a st
I Urhal is lhe p!rpose ot mpod slalenent in Fylhon r cive exampte
9 Whal are lhe properl es ol dctiofary keys,
'0. Wh.. a-dre- I.p
'aldrg.
11. Whal do yo! mean by bu lr n excepliof ? c ve exampte
12 Whar is rhe use ol subpol0 iu.clon n malp ol ib ?
l3 Whal s lhe p!lpose ol relchall) tunclion in p!1ho.,
14. What is a r.enL wldgel ?
K23U 2300
l lil iillu liltJul l[ii[ lt
sEcT oN C
Answer any 4 queslrons
(4,3=12)
15. Exptain the sring tunclions rep.ce0
and spiiro n python
16. Explain wirh an er.mpte lhe h gher
order tunclio. nap(l
17 What is ihe d tlerence betueen d d c eaO
and de dd?
rB Expain ihe use or reshap€{)and rransposeI
inumpy
1 9 Erp a n message widgets wi|r an example.
20 Exp. n w r erampte code how to creale rado
bu|ofs
sEcTtoN _ a)
A.swer any 2 quesltons
(2x5=10)
2i. Wrte a pyhon program lo check wherheran ilem present
is in a iist.
22. Howro derine and cal lunction n Pylhon t
Expiatn ditlerenl
ryp€s ol l!nclion
co.siruclors and destructors tn pyho.
wrth erampte
example code howlo creale a labte
in MySOL trom pythof