0% found this document useful (0 votes)
16 views

Computer Science Notes

Computer Science notes for seba students for 9&10
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
16 views

Computer Science Notes

Computer Science notes for seba students for 9&10
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 36
ss it _ ae x i. itt > Fie proce Sson_ineect 5 stdin > standand tb, . A teh teadex_fi == Be include Costa o> Ba tccosen tone eocaand 7th = toatole input oad _sedput Be ee Aialhad one _¢ languages? —Ans Cia mnicedte Lev prineedus wal_corrticnt psagsarn eee developed by Dennis Ritchie ot AT‘ and T hetf ahowotmnes ia the peo 194 9 13.5.8 : l oe A iSyest = in Se i Ht stoteraents { 3 ———Ldastechive cuit thee ———ticl naau = Main J a china type Steed Le. = Olek. —<—— ___ — eich setunin Vali ite prtenent WStul _eXecuction of —pang2ann while ~ thr tui valu 1 steprtearnt ine unsuccesetal — fF include | int main!) { ind 13 scant Ca — nebo 0°, —___—_—— 4 > | te include tat main! Ig | Wt 3 pate _ pict C Entot ‘ “ porte or sd" 215 An You_have ts sidia-h ) we fy ap name” numbed” “y, L sie + nn scant ai patio ( - i Il scant 1 Been vit} y | : | oil’ ("Nn Whe sum oF th: meumbend —P fe eed 0% , a = pe eee) Fi | cade White the —fompilen “Het Jurehion ve the in ——jfedtine took foe af he cods __Arenction to Mt identified the _canapsttes, sseanl()} eve file pint (py ——— or he wextage of tHindude Zs chia.| birnain() oom, ay cag rile ie she _cterond p—seank (FAD) ! gt ays Ee i pate -CX0 Te overage “OE the Ave 0s ake a a - _ —4 st ____——_4 _ ——— : - ae | a. iwaike.— a C. pwoguan a_ nd the Sumamg pf hoo numbetis. re | “ea | AE include £stcio-be ——————___—_ | int_main 2 ee 49 int ‘num, aun, gum = 05 __la | pruntf C Gxter_a—nunber + ”); - 4 —wantl'%d", & nun— 1); - ! | —pontE Center another number i 1/3 9 | sean OS %d"', Prin? onary J ta Luu} — ——¢ —_. print \a Summoetion of — he nuoolt es elite eat fam)! te at tet 05 - i 4 “Sheu ions censate 2 ince riptonaia { & chase i C20) 1 print C"\in Emtey, ne") | scant On pi, ee i -pxtinkE Ne You hove _enlened *5" ids ys 1 a that {son cpewator 7 ee fos An cr operat ie —@Syenbbel hak Veli, the —___l tampiler in__petoora "specific rnathe nmatical on Logical functons C language is vich in ——} bull in. tpetators and “prtavicles the Sliaus— 09 _ Tupen ok -opsstasprent = > -Ardathrnetic ope scactos | D> Relational 1» Assianra a) Mise moe ___vortiohle A hates A * > Ax B= 9 > (=> BIA = 2 Le Yo > (Modulus —> Bf - Oo } - tL ise eSB ae os t= ee eat ore mos. Te the value — na equa thon athe éonctiticn —__4~ a | becomes Arete. ———#§ 7 INS Check 4 the svat eat rant opany | is gnradet fhom the value at sagt 1 I anennedd Te se Aby undition be por | Axgue - \@® 2 Check if the value oF Left operand = ! is leas ethan the vali OF aight. —_ eperand. Tf dyes, “Hnen the cor herons sete | I) > = Check if the yoluc of left opera a ee “than on eoudl 4p aty | | voles Ab Te yes 3 4 = Check if the wobur of | “leet opesand \— y is less hon ow equal jo hey alu af tight _oputand by thea, “the 7 ———ronditien boeeorme yuu ms OEE eee — Sa : Assure vate yeotiable A Sei able 8 hatds ates I) Q2 tee Cattect @ D epertthos, TE Hert —— het the operands Ott non = @ze0,—4 an | ) =. e008 : __|| the Opdanda is oon-2enn, then athe Se becomes 4Aytue ——E92= CAB) is aye 4 1 Catted eel OOS NO? potato Ts is | tuncd toa Over ne ne Ingical st estate | ele its operand. Oo _cenclidion As -Astite wchhen Logicat NoT? opotator as UL mngke. Ho fata | geal CARE) Ws bu, == wae aC Pcqnary_—! te paint * i 7 T_yteacl in Helass *" 6 tines 3 lftinctude 2stdiobd | Irbeses tot maint) | eee, (“ T read tn: clan ¥ A_sread in T_>tead in In hn taqvam to ese using cohile V sil Biri i “int main U WL I tllhete a 0 puogxana ta Show tthe tose. ot al Be eae apein tenes 2 | Finclude Vint nantes (2) I t xeautt = 1=b)s Tat ten a tad stealth )% Healt = ins pin Ce Stsodion id nettle : lo euts ity ——__ptint £O\n Mulbnticatian: td", y ted 7 i] veut = ili _ = ———ptiet UNG Division =f A sua]; a —— Mult = hei: | ict "Sy Piealies he Menutt —Fcoul sista _ bel» —_ ne A pninth i — eho 0; “Ny De eotemint a dev J gcemet 5 SSS a | Ne rere ~~ Int main L Pe TNT ets poiimelon — ——__ “Erttothe length ofthe arp Ty een na pay Pint OG, < beni oe oS? — oe Ger she batiacthy of la yardage, — | ee 2. Meet TSO Ag Ry): : ——- = ae im 2445 2 = i wy ra ole lb zd" | rte (Ae Pointer of the sudan 2d" — _ | _ dehwin 0, — 2 — ——#Wlatite _a_putceptam to sake -hop numbers fiom Ahe _upew and show the adeduttion oF [the namber. 2 |, ## include Csidio- b> int main) Ob, one qoual) No Ente a numbey i" ie “scanf("%d" Pal, — -prdint® (No Erie: anche number: | Scone ("Lel" 2b) sums Gtbhy | pate 2 Cn Ae sSuuna_of thse _nunapena is Ad - | sum), | stetpein OF - i oreeeki |r — si syntax + 7 — ye if (condition) 4 ee | Reto 7 4 | eine we FO = SS | Conditional | iB coke Ld | i Hioclude 2 stdin peta) lint asin, —| if fazo pth Cas teas hen Joy pi | ohtenent — TF 7 et then cUffesent pet Stelecaunt_ig ———_ be Choe staternerl ig yeu condition se and Qulne I ————— 1 — ~~ blodclof states | Soden i = Letae | £ — — black? of “shedernent —_ 5 ° | Men to Ae oboe = 1 iy_cendfion ‘ts Aut, then block A ——_Stodement sill be erewted and if —t condition 11 foloc then Work 2 sboterund sill execute = | €oe aR fa ’ | CTE condition — S a | ; an - To ee a fies g priate (Odd Munaben "); 4 | eho O: — 4 t L00p_. laops oyu. used do stepeat a block of otaxé je ndition inctanl, | desementy | LI block of tadenent | 4 te the Nattiable at the bedi inal dhe “testy eae se sale bo cleop ‘dltciche vteeth cohtthen the logs 7 _s erin ty tine A, y i i ea Ts ” Ak tL ttrt_main Tt oo pplidn ena t pant ("x"). fein —______| pind CO). oe ee ani OV): > oo __ Shun 0} i] 2 lArerays ie “a__kind of dato soeuictusee that cecum — store a elemaant fixed = size Seguenciad —eettechion of —— ok sth: _.same AU creer, — SSS — it remain!) - a § =a — int eure) = £2.3,4,5,67, 8h _- poll (“Tritiol value of z Moc Fist ssoay AG - Ogu 4 ¢ ‘| ie ss fox a ee een —— ~ fon Ged tet index Oitoder? PT) indutdt A 4 “gee santa o Toiti we 4 — —_—thenent aN: FH send ave \Ocktx = O05 index 255 indent)” vy nw O45 indtx 25; sept Ss [~—petioth he” stateCing i, = =—— —— Tat toga an Tapa a Rae Ante Meer beand _ > Eo ude < stdig-hS go ; hs ————————— a 7 |! a $$ —h a —— | tnt —oumty) =. 2,.2.4,5,6,4, 5 —— | print | CAR oe alias af the. as — —tlernends asus )s it —|_ fon Gat 10; ida, ity _ a. Ci pckt, nul) a _ pink") a Taking. fo the A2etOy = dng works ; — ——= ——s __ ~ foxclint t: Gy ida its) a i] ¢ prdntt Co \n Enter Sine scarf fed", Lnowel Uf f 3 oe —— points (ra New asotay steno fon Cint ted bea ith) —$$______— print CUhed nami), eka Dy SEE pati Ap = |} scant eae a cen tana tp stop? Goten 6, other ioe Coy —achegen : Dy . q Mice) moation of the ruienbens | sum): — TefoeL Sk || nt uenla] = 12,845.63 - en al vokwes. of “He Fad asia 4 elernert pruntt A's “fem Cieides wodes “TLindts +3 ' prem (1b inumliodes 1+ chan store [A] =4 GP ISee py "\n Tnitial value of tre | fen fint Der 20: index 25: ind (paint Yc” state Bedex|)2 — Page 152 _ = #inctuce ————_—— ai int maint} = — int uml] = ___paint F("\n Initial valuus et the. fe C1 ———___printi elements!” fo Lint t=O: t $ fey : S$ AaNY fon(int iso: iZd t+ —= es a'. ~Inpuk_ty qi eS 0; nicht mint’ (Sn Enter acon GESTS AIE 5 ; ta”, Qt fd yy. a Gian a — —T te forlint i=Q: 1s A totale 4 a) TI a Y Suna E_Starn * nuinnben: ca, =i. _prantt ( (No Sunaneation is 4d", sure), piano 0; _ fags - 162 - _ I - ~ Hein clude < sidio.h> tat _rnainl re —$—________ — | int _ auenbén] 201— a — | int totalFle; —— | print (An £ nie s___ anf", 8 TET C0 Taleg Inga to Bosca elena ~ fon Cint izes CtetalEle, aa). —==s = Abt C\ a Enter eleneend td dia D); PCC Ad, AnemboG ___, our at nunboet2el) — —— —! "ant tetal Ele, — — : _ _paunt ON Ente total ne.—or therein jn L Se the caetiess J — ee scant ahd" Lantakle)s a _ == gant On Tataing —inped do Hee a —— clerveals fen int bao; ——farlint {205 i etotatEle site) = ro | of a) if (numbalid 4220) a te Pruett (An zd an “even Ames a § numberti) * _ eee a hetuna OF == Peal tothe anmay_alscoeots "Ty C4total Ele: i44) _ ney —tennerks: Oj SE dag) a= Ga —— WC demented" (ia aN); CBee); cet —_—— | — Fes ‘ Inti= 0, idole les aa) — - —— = +—— pruntt (" \nTofalnumben ef even yeah gt —+ ll Bd "county richoin 0} —— itt “number «Dol; — int totalEle, item) ———- pint An Enter the Antal numer of Seng, jo the sede"), — seanf Cid" deeotordllle), — _prtth CN Fas \npud_ cle the pens = = ciemunies Ty —— —— fon Link i= 05 i elehaléles te ist) it “ordatt [No Enier aement 7 "& 4 ay eas Inch" achente pdt \o Enter the “nuneben_4 you want sb aseouch ")5 = Seark (“hd Rite) ) —— int inclex=O; — while Grider Ztetaléle) | ‘iain fi =* item) _—- pudiadk ("\n The gisen Number is “ in the mony at_index %4° y inde §yetuwn OF jacle’ edodsstls - pean CY vn Caven finales fee pretutyny ts NOV 4 _—_1 —T | pint C\n pion can ——} paint \o Ene cuecent hd " ti+ 7d): ~ pp tank hd" Leumbe Lid); : 4s - \ 7 . | prided CNoEn ter the nurse you weant tp rity. -\24elalBle, a 4 - scant " Ritenad)s — ~——__ lint _i:n flag —- a ant gene j\ prod} CAn The 9 ic = = _ aetay ot ae == al] —. Rit iZ flag 7 = (Lpe- 0) — - a_i se Paget. — Ss Hence Celctio: sh Re ot eosin) —— = gar chon —ovony A= Le ct Fe til "AHR HY” a pase terns in “ie revOUe condi, — —— att gin —— ii _ “int. ndes= &, A oo ee = tahile index > Sea —— — — i 4" he Cc chare_ _asecay Linden mF - _patextt iad ons = 5 oe _ ete 04, _ a _ 7 - a i RO Ta — Page-149 — ———-— ____#finelude © stctia-h> ee —— tnt maint! _ ir = It 4 thas chy a ooeay [I prot ts — tnt _ geohole (index < 2) “S—a_vatoble tbat Stayer the fwatdble. Unlike ptben vascietbs ie — _s imran: =a the addres of oO varia —— haps aig “get_vauiatle holds an inteaus voloiee an indeg Ce petnden tolds She adele tog ot Lget Newiahly , _—___ int nus 29: ~~ | psded El” Ades at Heb OO Lpucpie fey —_—_}.sign 4 semen oe ——— ¢ ss 5 = Curt oy “4 Whol ose the deur types of loves “desl The thiee_types of Lappe nt Jo labole leap: ~ =e Do wolhule toc. a fen lece —~ Foneg —— ~ ~ Finduide } Lat_reunL) tint ety toile Lac5) — WiAlhile Loop ty | pnt! (“Conmpictee Scrence "D2 | aa, att = y = J _ — chem d oe es = FH include aint mnt —_Lt aint a4 Sen at de — =e | — praotl¢" Computer amity — = - —touhteloe?4) — iMehuin_O —Th nude Cetehic Jas. — let map si TI! . ) =f a6 A fire me 5s wid )) il * “Hinchate _Cstdio = 7 >< \__int maiad) _ hy ——_ SS ts —S— : - 5 ee Es ae ___ pring ( M Prtath ("Ente tne number cf _ lines you want _- ++ be ching " Sd Scant Wd" Pn) Fayed 2 7 - ~ fe kee) yea 4) a — oy “ 2(NA4- 15 ia) —— _ ~ + ——_-pruint ("x"): = ~ i . ee = ~S + aseintf Nn") - ~ L 7 i stebroin Dy = i fe - — i Tt Hinctude dstdio+h> - ‘2 int main) - | | { - m int. number, dig't, tomp, - - - 1 potint PU’ Enter the integes "5 ; = L sean C'% el", Inureber; = temps numbers - cohile Ctem digit = tervp hed: prtinth (Nn Extotacted digit ished "s digi Bi, temps temp! io; . oniot CNS 5 i _ "| —yHtetan O% — eo _— i ago = gy ttincucte LstdiokS———~ x xxxy 4 int main) =k =X —_ iss ees ar _— + et ip re = fox 4, 12253 44) —— Tt { i = pxuntec \n"); = —- fon Gath 25855 +4) 7 4 prdinth Ces — . - 3 = ————-- > ——_xetuin Oy - >> CEU C__ —— aL stHincludle Z.stdio hS = ——-intimaing) a se —i 8 Int nurabex rcigit, temp, fume Aa Pinte C’ Enter “the Integer +"), - seanE C844" ALaurbes) os ——— Eero pe? numbers: ae —___ewhile( ten ap» oo) —— dl 4 oo = ——digrt = temp 7 10: | - a —i Sume Sumt dj pubs | temp sternp ligt” a —! ft , ——“¢ — psant Ff CkSitnn matty BY _ - i w erinte \n") ‘i aon __oft SUM bey is. tad! Hefuuwn O} a - —a ie = Ae) pe fetta, Astdio: BS ind omnaint) i == Xe abi gs SSS mt See. ‘ a Nap tet teess as) at Pointe Aa" ds ae Ord; jZei- = tpt C ag a * je) \ L i ——- Ox. i +t HHinciole Jetdio D> 1 i main() oa : ae a 22 in L453 = a " fonlted, i255 iH) et HE If 7 a - ee Se ); fo Ged, 2205594) 2 4f , prualy 2"): 3 i sted O} 4 hon + Hinclude 2s tdie h> ind onan £ j tink La, count=O. “5 —— ominirt *Errless ce Marmabere 2 45 T SS nee cent thal “2+ jot_onaia) choy we!) _ char *ehPue— ——————_— en _—_chaPhe 2491; —__—— TES _puinti('\n Valuc ox using pointor is Toc chy | printf ln Value_of the pointen_is Zep", chPtrd; _) chPtn t+) eS | prtiet On Vader of the painter after tnckement_ ts hp" cP) | [* Using pointer fax int” / 7 i int y= 24; = 7 — ___} int “int Po _ a — | bntPine&y) a — fate hoe Yala _usleg poirtor ts ted" ! “intPt)) - _ puintil"\n “ig ___| p O Value of the pointe is Top" ints —~ iotPt 443 = i 4 7 = t 1B 1D: ees me ee —— ' ~ Ces i ae a matte wahlege ae | 7 Objects ~O40 tuned tn ae pHOgstarn, Eveoy P3ope-ann faeces on entity So) PxOg tara _ wig “simple CLASS ~. behovious. aunboke | Objeer- Lerodeh lis ienploioniee ee Liked = “Dobititance: —_Tnheu bance maka os progea »abttady defined functor - cli flexent clots. == ——Hy - [3 yereephisnn: selfon : Aciined a faurctian 5 | Suppose, coe nave dc : en that — function carn be ustd eb dirtesces Wan the orto tes _ a fost €-4° - = te have a funetion —aatled —— | sha - | y o La . Imisf ding Dyunarmle a Alsen Cocteau! i . fee wen ne Poe precede is itn i} _is Vine code. — wun ik means net bind qcith | y js ; ee K ——— Mrssag u —Lomeneinicadion == 5 ; ‘ i ~ ; — Passing of rressege Ther otiecl 4D. op, 1s Kneean_ O48 mersage cornmunt cofion. —_ LEncansulakon k 1 - | — ==, — | ——- bo = / 7 ——|— ares ie. | 7 : — 7 = — — es — / - a | | - i | | - = —

You might also like