Data Structures Using Python – Winter 2024 Solved Paper + Important Questions, High school final essays of Computer science

Subject: Data Structures Using Python Course: Diploma in Engineering – Artificial Intelligence & Machine Learning Year: Second / Third Semester (MSBTE) Document Type: Important Questions + Concepts + Solved Answers Pages: 19 Index / Contents Covered: 1. Introduction to Data Structures 2. Arrays and Lists in Python 3. Searching Techniques (Linear Search, Binary Search) 4. Sorting Techniques (Bubble, Selection, Insertion) 5. Linked List – 6. Trees – Basic Terminology 7. Frequently Asked Exam Questions 12. Previous Exam Style Questions (MSBTE Pattern) Full Description: This 19-page document contains clear and exam-focused notes like Question and Answers for Data Structures Using Python, specially prepared for Diploma (AI & ML) students. The content includes important theory questions, Python program solutions, previous pattern questions, and simplified explanations. All concepts are presented in easy language for quick revision before exams. Ideal for MSBTE Winter/Summer exam preparation.

Typology: High school final essays

2024/2025

Available from 11/25/2025

paayal-rathore
paayal-rathore 🇮🇳

1 document

1 / 19

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Data Structures Using Python – Winter 2024 Solved Paper + Important Questions and more High school final essays Computer science in PDF only on Docsity!

>. DIssve 1 ol? oe | doy _Doto At ckiure Aig Pigbeons m go a 2 NPAs | To rata > ai rtsr TOM ; Oi eel on Lo TT Te goth gate — enn ene == Attomyat Ong wen 4 hy. fallouritag Lo S7F ¢ an at 6 het cae’ eatuvus 04 piphen 2" * © RD San. to Taata eer _ Inointoun @ wnhonacthiaw Qs ieee = Oriented — @ Dumoumicaldey, Tepoed I rane’ hed 0) pen A Barto © Ou Parade Libsiostea 7, fo! @ into up voted . (@ Ptothom nce pencl ont el tas any, tun bare: tuple operations — Lith? Auito he Soaonyate wo eee Fails Fo 0 ylerncatonation: uvetins Kin Dupo ton Lageth or ARS eg = 41 = (a ,2,23) Pur be shies 26) Seong \t = bi + +2 . priat Coat) +e _ourpur 3 (42,35 ,6 Q) © Ro putin (_*) "Repent. scasints eyo nated oe —— tg t2 (Arye m.) ek = ah 84 print Creu) SE ouiput : (AU IML, Ary me?) @)_indeming — | [Atorsting. fore 0) My Acro a Lnya— ghumont sing Ab indo eg 4 f= (to, 20, 30,40) TENE _#£ Output: 10 ~nwat (+ [2)) —* ootpit Bow @ Alicing 9 ‘i Ms Acces a Jb _— Lupe Lang 64 “lament ) 2 yo =.= =(\o 20, 30, Uo, so, *) Faber set print € 401: JY He output: { 20, 30,40) pyat (40 3)\ # pulpy ts: & Jo, 203, 30) =) print (10:3) we thoutput: Ware 20; ao) Ee) Daseaorn Q) nandim > yea Leon ig enLya tig random, 3) dete bens 2 wi ce le alo Ba 4) “OS = pneuiden m) nitions: Ah Aporaniing Aystirn “Hea and past). data_ Atbted and Atoumed -un_a_ near perder = x Pitot. any, Lunn ype of Agrting technica, To Baiting 43th. pasts of abongig the. WIT alemesita tho - HLL | LIAR A Adinding /daien ding 5 Ar 2 Toon types of \eting __ ; Japhet Bibtte srt > Rap $ » LA =a tlamonta and Awaps fhim LL Arey Aso, nD the Au Eng. - Ardor: Q | Trhortion Ltt inionte pa F 03) —Bieengt any, Tye 64 the ST ia ea _ aa | Bade python progam tin pitmE—IRE | IY, —polleusing 1 =F Sins pote Laci oO A. > 2 3 Yo 5 ¢& 57. 8 39 Jo Page No. Date b> QUMm= & for fin range (1,5) for {in yange_ Oe: Axsnt Coum,iend =" * an ik num: 443 : 2 print() : Se cti e porations or \stuipte tain?) ca) : Yvvamyp gr @rndex() ~ oper ahion. find tha Jiud oceans o4 Ooh qv prot (t-index (20)) ofp: 4 ® maxc) and mh furttion — * Rote miu And ati irunn Vales print fmaxtt)) #dP — Yo prot min(t)) tt o/P = 710 J @ fom. unt bacrn 2 Rotini: Aun Ha Swunoue tuple _olemonts i eg, | _prset_ (some) olp 100. i. 7 a3 cay 6) int) > “func robin ns Lingth ag Auple. 24 i]. number: (4,2, 3,4 5) — pict (len (number) ) asi : ae Page No. a Date ; in _Cocle ary -[ 10,20, 30, 4o, 50) om = “at Gopurt (! Enter. aie te earth! ‘)) 0s = VWeear, Search, (ar, Koy) oa ea" oo Tr 4 _— _ — _ _ rf pos |= -|: punt. (‘Element found at iadex”, pos) ele. jd 7 Pxiot (Element. net found) _ OvAmyt > - Enter element tp Seay 2 3012 4 2 i _ Element Found at jodex 2. Q2\) Attempt any Tins af Ahs. 4ellausiog ie Lal Atate nig dun -Comtial Aatemente. th ply thom ys | uth Audtahe —cxcampl—? a —_ 2 9) if Adalement Tay “ho. tf ska Leave Lh dso to-tunt a mditien L Lf thd plamdition Ante, CL black of LAD i patidite. nom =fis rF Nbm=)0 pant, [positive ~ nom be» ») q 2- i Op —p ode. Yum bee Page No. a | Date “i ry alae Atatumenct fin Ly, olae Std ed an Aree “A. PM LURE 22 edu Num = -5 otf oum 70+ poat_ {a Positive Aoraber 1). Clse * ; orit (negate anna) ‘) “f ofa - negative number 5) Daan a python Ses py PSI papS) as ke wate And | aceon eptratiin 2 woe Ab Vo + 3 CREDTE 2- A Act bb Owates Lundng. Miheg brates 2} ACCESS +- Slomandtas of a_ hot sean bo: | Bicamed: dng. ne rode: Aaep: Abie Dots: AKL: acerderedh \ onda: Wren AU ppast ing le FE PH0g rom > pon lode CRemte ia AE eH o-pua -Hors On Lot i t may set = lo 20 30 Yo so% 3 eA Jo men ts_gre *” roy cet ) 10q ve Lemen ts ufing for Joop) [| | | } TT ninalagy 3 0 Raat node.- The A26t nods at) lia ptt, Orne — ua. IIS dann dtp ne pant _ 2 €g_= A a ers : anuak. d_thild_nodti- A pert node. LA nods, Ee OTR {: Links) Le Banos An.d_ Haire Uinkad poder Ant LAlled A oe a7 A #i-ponant 0h. a @\-lLeat node :-\A tp nada chat ay No Anis d al node ai Or right pointan) tb ap bas Ee ee aR _ | 24... C_-And:D \ | i) Sibling” t= Node: hod. bla Bossa. Piopad. | axe Gatos hi i Jga - Bond c: a | Cq'- _tns0 Reotrooe Qs | porns \ B) ©e— wah nods | fp pa ne 7 | ; Leo nrodF ee ll —_ | 9) me ‘sh SSS — == —=— moe, ae Hom pt a nb yurse of Alar —_fegsltoricigg 1% ah 7 moat SM irae ee = 7 _ — ay Laer) 7 a. ALUnite pipe _prcog pao paliat Aum _ | Aigics At, gauien ypurmiate (4, io h isn-0f) _UEBE SE fiyinon. (4c ho Aum ziot Cin put("Eoter a number!) Som igh =Sum Cint (a) for _d o.Shx-F in um)) prot _("“Sumof digits i", Sunn ciigitc) Oulud:- Enter a number —: 123y . Sum _of Aigils 8 /J0 ° Atelinum) ~ conuort, phe number to a Adtning Ao 10 gn thee tiie Oe. 2th diget ° . ‘ - 2 ‘ od © Qnttd) — Consreratn ean dig.+ baLk to Anteg or 4.05 hurmmtag a Y d i UT Dini, now fo dicen, doubt and update. voluts th dictionary: wn pron 2 722 | ee > eerra) HE py phon Code 4+» cleacvibe arcess, clelep and Ve up. a fe Val taps t\ Archonany i TE Dic Hoang eran le J " aan Student = $ Name :" "Payal, Sage: N 20} a) — 4 Aceans pat Student. «Enamel top Aaya — +E Updade Student (." age") +2) FE Change value Student (wera 2 cat Pune" yoetiney vee Fda ew Key | te pelete aie, -del_student |" ibys) # Romove Key s —p sot ( Student.) pra Baal Aictisaary | Kee | voloess}oa’ sy : “Fl ndime patyad | aad Ago : 2\ p! mt Prodan he peogfiatn Serer 2 Loma deltition vdnd subtraction off) aoe two lt aC | ‘aalel vail: PY def add. (a “byt retorn Ath deft Subtract ( ayh)s When A -b @)_Oogte Ans. mith PO Ghauri Lo _utrn ts 7 wclusls FE Win: Py rien pas waaiy bette. fyend = sit lanput [nler the Frakes input(“Entex the s Qum2 = = int( et iaie if print (i Addition), ° pact baie yd I. T ‘isocinpet, i) { 5 Ender fier nome i106 Enter Second number 2 y pt Abt. fellening pe : eZ 7 tiaide pap 6. Dh | Guy Ube Sorts prrgera Pada 0 Soe . GEA deF bobble — SOL 71 ee Ns len (Oars ‘ _ i i a 1) Fo , ‘ | paot [“Oignal jist", num bey “ll Adobe. ssort.[ nen} a Po Ss! ' Page No. | oN Date TS Ha i aaa Hi L - iz create val lit. a : , Ss =f ug plo = 615. 5255 spinal t 2 Find dendlleeh aden lan — AmeoLuiat_= mia) coo jie H Eid dorget Wofaber Lasgend. = marx) tt Find Aun: ol. rath elaima AKA os sreg Ut total sda mesa Pens LRA! HDs ploy yoy ONG Y on an Af oa ‘ : | ofl es Num in the List Srna pint { " Laxg ey NUbnber! [athe etn ‘Conners pind l” Suns ar iad YQ. the’ List 2", “tht Bukpert 2- “ elo ul | wen {206 | ny tn’ : 236 Hy ABI HO ee bree ta IS i Nth vi) Reurar the Le} Date | A Abempd —aray, Hats 45-6 Alocs fpsdbPrinia 2 ————— — os Pactarghs LAA Ad Ada, y naa ew ridtlktss Ottite Anftadd e fbb hod. fer ntadiing diad painting ane dl t ma mas ae paler B+, echavg o i—>y y Class Roc tariate iy ek init (Self 1b): self] -} i Self. bi = b def: Area (relf): yeturn self] * selfs ms def pename bere (sel) oe y odarn LAI tale ct ‘cif-b) ws Rectangte C Cs, De prot "Area Ty, area ()) Prat { tp by en tbe” ye _pesceneclen 3) \ : Aveg: [x i wot Pervione benz le Pree en hee a Luaplatin: Ja oon be Lares toe dha fure) es AO.pAQy inn urcke pert ase SLA Satoh tous 4 —g- Sx oh LDALLIOVA pis Ove all 2 T qo a , uty rae Unie fo portlet, Comuceatons SU Av PEVEREE EVO SN IC SUC ies _if 99h ratisn ts Annicthen, hetirasen parents ona- AFB *S Pyyv ith Mas Aplewig Lj nOssy Drsa : 4 ee be wrupidor, y Ineid ar ard | = aw, fords pyopoarod RBOt 4 Luft 1 Riga) i Reet a a = -—fasobdien AR 20> CE ~Go foot I pe sumdon =(A,8,0,C6,0 cut] | ) ANUS chea__sctrorsoncal #- PD tnendn = Riaind.) D> RBeA-GAEaCmHVEOHT +4 @ider = (0,258 CELE, 1) See igatt0et) | it ae) AeA NY 2 Mitioss phon Asok —__||_ perrordor -- ; = —___) Da bo =: ey Lory SA + | pontorcdin. - CO,8, GLEW,L, F,cal