0% found this document useful (0 votes)
44 views18 pages

OOP Both UT

Uploaded by

mborkar970
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
44 views18 pages

OOP Both UT

Uploaded by

mborkar970
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 18
= SANMARG SHIKSHAN SANTHA'S = Bhilewada, BI SESSIONAL EX. TO BE FILLED IN BY EXAMINEE CORRECTLY AND LIGIBILY | taxeatd ate: (Name of Student) tent wz: Ohaeck OnenFedt Branch Cate: ene of Sudject) i ‘ate Signature of # Sudect) “Poy Jamming Date iam RIsfRET TUTE TER RET: AURREN THE UHL HET: LINo. of Quesbons Answored) (No. of Questions Answered) . Cotege Seat | (TO BE FILLED IN BY EXAMINER) | Sub. Question No. Quel ee oy eas lta ee |e lettre eee eriollesies | eria @/a{mlolo}|a]> GRAND TOTAL ~ | TOTAL { 2 Name of Examiner : Signature ; ut the suphical representakion of the eva _ On “the algorithm 0 the beffcr Undeastanding of the code visually - : ~ T4 Fi Step ~ sbsy= step solutions toa pala = It is 0 Pictoatal way of sepesen fees Hab oat pefeued £ ing E by_mosh Letnning eee meas to" nd crstanel assasi thea t # the. compibes E & E issuey_Jn the citgaaithon: isa _pickure of bowes that indicate? the equentiably . = ct _of Anite se. ses or sinshuchions to be fodlowed in Calculations 04 athes Poblem —Solviny operations - -— ___= A precediue_foy_solvi 4 mathamatical “pioklem ina Finite _—_numbes,_of tep that sequently dnvolves Jecursive opeukions: _ = Algasithn ploy a _couciel ole ia vei iclds nd have __ lysine oe bey oens le aul ay: =Q a ee. i ral : ic oO mn, Pham In, ssolve_aschien_ songing Lio Tntle. cos ing and ssecuchins to comple task scusch “es a AT__and -mtichine _deasniny. ee i) _Mabhomatics : T+ ig cS use to solve -muthamahica Problem sch os Finding. he apkimal icaluhion_to systen- : aiacl | a Sesouce cilfocations: T Sa hms ane the foundation of AT. and _machire, eoSnins + | Vv) Dake Saease + Ugartins ave used to analyze, access + ON tasigh enh ngishh m Jatige amount_of + pare : see I S -(b) Erplain —doopingstaschwe available i nC Bh of raring —Jonsage 2 ed PS_sin_soyammin “3S Used Jo sepeat fhe block of code until the 7 Suhel condition Oe tce: . ee =A _Jcop_statemen! alos Proammess to _Caeake evecute a cstabement 0). gs0up_of _.sabement muliple time cithowk repetahon of code. = Th e_roaindy tesa types of oops in _C. ing. i) Eats Conbsatled Soap ta _enby contiatied Jeoas the. test condition is checked before ~entesiny Jin the main body of 2 = Fos Soop and “hile Joop Contictled a doops: 1 a x ii)_ Erik _Contrabledl oop : a : = ait 6 stoi condition is evtluated ob the end ofthe oop body - = The Soop aly «ill euecubed ak Jens} nce ianespechive Eh adition } Paleo; _ eae naitinh tage srt tal fg al phe be =the _tohile_Jeop_is_enlay_Contsatled Jaop 1 thehmean.if the _given condihion isnot salisFied —dken® the oop slalements OW neves be emccubed : > Syntom oe. ps fa tlle ealien) a Bk. PAP ns “Shaternent 3 _ _ - =piftate siete : j 2 Foy Scop ae as =the fos Soop_is_entsy _contsalled Soop» Foy Scop is_sepetation conbasled starch that qlloas _a__Fuopammers to _drike a Sep that @W be enccuked o specific fo. of dines - ee - = Fist inihalize then Conchition check. and then enecubed the body ab the — : Jost - A = . a eynlom: fpr Cishetalon condition plate J es do-abile soap = do-while Joop is a_enif conlyalled stabement =—In_do-chile Soop. Sea aa Condiiaa is bue oy false : abkile (canditiea] —Oxe-4 (6) Explain 1D _ond 20 aay. Sg ae ete eae Sige yale 2 Fe 7 of_ eclessing seprabe vastable Fox each value . aes =—To__caeate “an _asjoy_. define o data type (like int) ond speciy_the name — of the _auay faitadedl by che bockef CJ =—To_insest “values to ib Fuse a Comma _,cepaah tok, braces, a: ink ay Cl = £25, 90,75 100} = in C_Jis_one of the most used daka shuckwe un umming « eS An Jn C JS ao -Fined-size lection of _simisos daba’ items stared in Conky Memory focahion - : = Tt Ys used _to o he _collecHoa of painitive daba tye cuch as | ink. choy, EFSouk ete. ie = Thene_ aye foo types of anyoy i)_£-Dimensional cosa ae i) 2 -Dimensioncy cus Jnsicle Curl _4)_one - dimensional asgay : AS A ew — one dimensional Disgy sin CG contains ao series of eleren} of the z same da i = the fish element is in position oy inden 0 ond fhe Sos element is Jn_position on jndew lauyeycize-t) = sytem _ = dada Type cxseyame] auaysize] 5 a -— eM: include Jnt raaia Q : Jak wlS]=thU3G ch printf The Furst element _of a ey 1d \n", aslo), jekuin 0: i a if —ii) too dimensional arias _ = The _too_dimensional. idimensional assay js basically et : ) thal. is -dspomic_ meman) alllecahioa concep sin C_prngiomming. 7 4 5 Sine Cis og Sbuiled ug ik has some Fined rules For ——Pacgparnead yy One. of them. anclicuke changing the size of.2n_ausuy reiltde NONE IS _the collection of_ikems. stone ok _conbinjgous_meniany —__Jocalon= Z J ——=for_emample if 2c having he avy of size 9 ond only needed heads file fo fucle ON e namic _memany. Hon in C Prosyeumminy « _s +4 Es i) railloe C) PE ves = uals i) catloe a oe L E i) Pree ——— Es Tens, bos iw). seablocC) Ss ).matloc ( U_ ; used _to_dyponically alleca-e f The _mattloc "oy “imenaoayy allocation” method jn C is a — Single. Seu cuge| Lock of Mmemony aith c pecified sre ~ > Tb doesn" snihialize cess: memony ab enecssbion Fie So fleck if jis catalfeal each block. with the. deal uk galage le iiss 4 = Syntom pts = cosh Ayp®)_matloc c_Lbyte-size) 7 ai) Catloe (). = The “catloc" oy" conk ee nel sin C js used to dynemicatly abloc the specified no - of block, of = This much siouley_fo_matloc ri jk hos 2 dliffesent gninks T+ snitiobe coch block ith olefawlhyalue 0 —_ AT hos to _Povameten 07 _algumenk. Gs compere fo malloc C1» et i get paz —Leosk types) « cablec Cn Lelenab-size) Se eet CORR cc Oe i 3 iC — Pehl vos. ote aus bogie TE BE et — Free method Ja Cis used 4o dynamically de-allocake the meray ___ Th ted by the paeet) and catlocy wig pot de-allocabed cn they 0 N_Herte the yee) method Js used _ = T+ helps to secluce_ wastage of reenon la) Erccing dh | a mn ae ; _ _ Free Westable name); ne _ ae = es _ : ic) methad - — ey oc’ 04 “se alllocakion” methed Ja C is used fo_dyremicably chorye the ____ memory cillocation “of the previously allocated _memony © eS = In offs _ coords, Jf the _memoay_gaeviansy allocated “vith the hole of malloc and catloct) ig Jasufficient , seatloc canbe Used to clynamicably se-ablocake, memoay: SANMARG SHIKSHAN SANTHA'S Pana scare , MADHUKARRAO PANDAV COLLEGE OF ENGINEERING | tsPeses || Rot No = Bhilewada, Bhandara. SESSIONAL EXAM. (SESSION : ) TO BE FILLED IN BY EXAMINEE CORRECTLY. ‘AND LIGIBILY (In Words) Enrolmen/Registration No. ARCeT/Aeut AAT faeatt ata Year (Name of Stucert) Semester fara ata. Ob JeCY ONO Tan, Teale: (Name of Subject) Paoyomminy Date atstactem Tear WaT AT AEM TA CELA HET: (tio of Questens Answered) (Wo. of Questions Answered) College Seal (TO BE FILLED IN BY EXAMINER) ‘Sub. Question No. oe ta | 2]{a3af4f[sf]e6f7]e6f9]w0of nl. A 8 c o E F iS GRAND TOTAL H ToTat | ‘| | Name of Examiner : Signature: Ques lA) what is meant boy OOP 2 Lorike Henefits of CoP => = As the nome suggests, obgech oale caked Pro spars einy on OOP Aefers fo daunguaye that ase obaecks Ja paopeacaesing ae : = abyeck_oxientec! Guopamminy dims to implement seat woald entikes dike inheritance hiching polyeionphisn eke. in Paagiamming « _ = The main Aim of O0P is fe bind tonethen the dada Gnd the Funchionss fhe qperake on them co that no athes poak af the code. Can cicces _ this lala eupeck thal Funckio - = = OOP‘ Concepts : : + Class : Obaecks _+ Dako Abstauckoa e jeasage Pussiny. Benefits of oP = facies Troubleshooting = de. Beuseabi bby uv = Dato Redundancs — Code Flemiahili = PAG Aes Sen “sib lit- = Se acy = Seuss hs i. Due 1: (QB) Exnploin abstackon andl_encapswlakun ? — dd ping up of duba u = Th is_o ina _thab ind together code. glia ie | is outlet Lvgrn being Occessed — = the vowable on da of a an hidden ae acy othey class and con be —____necessed _anly dough Ons member Frtnchion of JFs aun Closc jn akich they ane _cleclared. ~ AS jn Encopsulahon, the Soba Jn ‘the. closs is Kidelen From other clases, = So_ik ib keen as dobahidiqg oe 2Absoccw == _ = Dabo Absbsachion_is the paopers details cre displayect the Users axe not displayed to the user — en: A cad iS Viewed as a cor Besuther ther ik = Dato _Abstrackion_moy also be defined the reduirecl_chewecrersikics af cn _obdeck | Bc. oS (BY Define fake al ee ada ai yd —___ = A_stake is eye sand In _the C. and) ipo, ayes oe ws Ce eal ae eyoaad tl deine ies Stalig dasa memberon stabic member funchien _______asinside_ard ouside, of the cloe = A stabic member fundion: ae plaid funchions used fy access the chabie dake members or othes _stabic membes funchons: — __A_membes_funckion_is delioed sing Ihe _shakic keyeond = As folic merdher Punckion hoses! the. Single copy of a of the closs object “con accers the “Soke ménbu Rrckion usigg the chas ame on cbas ~obgeers. = = Tf the stabic member furckion _cccene ony pan=stakic dala _membey ‘ee ‘on_non__stakic daa funckion i thos an eras. = -euiihem Class-nome_: Poeshen cone (panne) Dre tld) Deine Trine funda St env ane een ee ee C44 provid inline fueckons $0 seduce te furchiva col) oveeod An TeSine fupchion _ cupeunc) cd 3 funchion is coed ole code of the jnljer f Oh bclijud ob fhe point of the inSine Fundion co 2 7 enh is coiled - = The substitution is peforned by the Ctr corapiles time. tn An Taine furckvn ry Inceuse eb Ficfency af if is genau Sylow ee rege hte sats pt Reclon tame (peaatictaas ee | es of Fanci code naa = hen the Prdiyoen —emccubes the funckon cow anstruchion the CPV stores the _ adders OF the jnsbaucion fallooing the Funchn co ~ FurncRon cat Ovenkead doesn't occur - = Th aio eves the overhead of o return cot Crom a funder,

You might also like