0% found this document useful (0 votes)
42 views15 pages

CSE Most Asked

Computer Science Frequently asked questions

Uploaded by

Md Azam
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)
42 views15 pages

CSE Most Asked

Computer Science Frequently asked questions

Uploaded by

Md Azam
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/ 15
SECTION- A Read the three numbers as A, Bc @.Dectston control Statements in C ane = q@ @ Ih statement: the statements ede TR body exeutes only — when she condtHon oleh ™m eh b ie chwe- ma Te Statement the. condttion TS Skips the false -then comp Tet Statement enclosed “in 74S bok | we can have any numben of iG Staten tm a c progr * +E Thdluda = 18 D » Bam? ("yeu are elgtble bo" vettng” ),; ewe * Ratat (You axe rot eltgth le gost voting ); setusin OF; 3. "yo @-Susttch cace Statement : Ths 7S ven 1d Set sadul when ot, need +o evaluate multple cond Hons -he sutkh block depmes an expneSssion (en cond itlon) and Case has a block of Steements , ated on the. execute ‘ @xXprAeSSton ) Corot ponct rng ase Bock gets ate Tadlude SStdio: h? tnt =o matn © ) int ame Z; Susttch Cnum+2) é case |: . Brint § C'case !: value TS “fad, ny mm); case 2: . Ratat§ (“ cased: Vale To. hd, num); case 3: . Earth C" caseg: value 1s + hd) nem); ot |: Print ('Refawt: valve & vd 7) num) vata 0; ee 9 @O @ © Rrogmammin evrd es a Sef = dektned funck&ns ond eds FBS. eB ing hand itn halons to Wonk wTtH, ed values the Stm7t md FunctonS ane defined in a heacten bu St1tNg > h Whenever we want -to use Oy y sting. hand! functten we must h Tncle, THe hea, yile coke Riottng - a Sstnleno— finds sut the leng-n stn Gt () — sb appends Or@ “statn at the end & anotds Sts omp Q) — compane -hruoo Atortn x sticby C) — wpies one Statng oven anothar Stntwud) — converts String for Lewtet cane. Stmy - * eg | re CA bnwiy Seoich i an advanced type & search < oatihed otheet -gtacls ond fone dase Satdqecd let Themg: Ets “Wer Wark Nove Ives Nivicling -the dati in the (um =the on u Velut TS prem an g pottnctp le Its+4+-— Fo hi locatad And olisp layed +© +he Usen A -the Seautch mesgult- Btnany Search 1s commonly known as hall — inten yah Seevich o7 o logan tthmic search. Example. =| Ttenattve cau dt Muude CStelto-h? Thi ttena-Hve Bmany Secu7ch Cin crenay CI) Tat Steott~ Index } tet end — index, mt element) whtle CStamt= taciex <= end — Index) § Trt miodis = Stash —tTndex + Cend-mdex)/2 3 Th © Cmidd ies) = = element b ea 3 2 MTdd |e 5 Th Corte Chard ieJ < element) Stant— ex = mtddie st 5 ejce A end —tndex = mtd (e. ~ 1° etunn =| , 3 Tne main CveTd) £ Tet CI = £44,7,9,16 86/10} 5 Pur nN = 7G wr ejement = 16; int found — tadex = Prenahve Brnamy Seanch Cannay, So) n=, element); 16 Chound — index = =) ¢ Bator h C" Element nor Bound in +the ermay"); else £ Rrintf Clelement found aks trdex + -/-d) y und — “trajex) + 1 mMehunn O; j — WD Example 2 Recunstve Sxomapls e@ estdt0'h? CITA Gert —irclex, 4h thelude os Tnan Seanch (rat armiay Toren se Be ante element) { Hr enc — uy eae index > > at mene t N e@ = Shuth_ index ce Thelew W/o» *& @omay Griddle? = = elemen-+) | MEHUIN malic ; tk Cmretdiey > clement) misting " mecunstve Binany Seanch Caray Stort —trdex ) mtoiclis —(,Aement ); | meh necunswve BtTrany Seunch Casvtag yrridclla+ ), | rl tates! © lement) 7 | 3 Shin — |; 4q Int main vera) £ Trt aonay CI = (1, Corel _ trex = Stest_ 4UI, 1 56,10f > he n= M+ eemen+=9 7 int found _ Trdex =< meustste Rrnany seanch C Ort) O,N-1) element); 4 Chourdh— tadex = fy Example 4 itenation © we tnt factental Gnt num) £ a i+ ansSwen=!; 4 needs tnitialization beamed % abe a gon x Vv . 2 bepos THs miH altz¢Hon fon Ct t= 1; t+ >mumz tre) I ftenatiah. answen = an Gwen * ct); metunn Cans west); J 5. rq @ ©. Ast 7 5 . m+eng +o Sting OccupTes les space J - alates d — G4t; Borne "7d Za”) 5); | j 4. Extennal Stanoge. lass > SY Is Stoned in memany , int X= 21; int mara C) ' £ ertenn tet g7 Patt (Hrd d Gy); wong. 9; aay 4 int y = 34; Home x ancl both ane gbbal ventables. sme both one a aD ce that jax A my Hl —dzmeng tonal eo re ed re mane than One armen To murtipie. Anan s 7 AN an th ct oe nl Simpest— rated diemenseorct Ot 16 the 2D cout 7 08) To ae swe as your TA's technical an oe OP cine wrll See wm th cade Az PY ows and called 8 matnTx,o1 @ +uble o _ &olumn: tH indude iat mam OD) ior 5, met toi) Ce), mat 2 Col Cio], mats Cio) Coy; Int mow, 1, sow2, 12 Sean Gore Ene smb aE Maa") Sn ai dake eae Maas" Safeco ae TPN CHS rember of tous of rere"), yp & stew 2), Paw CVn Exten the num ben cf column ef - mat 2:1), Ca", & coi 2); if Cow) = mow? Neola t= coir) §- / we matiites ny. ext+ C0); % AK Same”); fan © 3=O7f 66125 F+4) Baroy C'Enten the PANE La" 2 Bements a lend) Chal 25 5), | oF tea “AF LOI C57), 4 fart (j= 0; Tomew2; 7++4) Fan (550; I¢cwlz) 744) © poe Tote C" Eaten +e elemente bee . PANG CO God BR mark 2 CTI VEATCH = 55) $ So eee !!tC“‘“OCO™*S*“‘(#(WSCOUW @®@ fan ((=0; fF es0u4 j itt) fon (3=9; 3 Cid; S44) t ya 3CTICT) = met 407907) + mart 2.07) CHI; Rant p ("\n The Add toon a two mottos wt \n”). fon C= 05 fesowtj +4) , ten G=o;i¢wll jirt) é Batate (hd \t”, mat 30009); 3 Batrtp U0"); metunn (0); 3. @ FILE RASED APPROACH TLE BASED At igatet ec erg gun ‘File base appsroach’ mefens to THe Situaton whene data Ts stowed ia Free ny SePARAFE computer ErleS Aef ined an. dS oma b ibRenent SPP freattion lect a yy AE Combuten pstoanam s access the Stoned a leg -to Pespanm -the yantoug tasks lequtied oy the burn ess - DAT f BASE pAPpRoAc When a combany employe a “cata base” Obpmoach ,i+ means FH maker Strategic dectston§ based on data AOU STS — Qn inf @bretetron-A data base. Oppoach enables Cmpanteg +s examrmne ana OnganT se thes Wh the gqoak So betten Senvtng thein UStomerg anal consumens . By ustng tH, an angantsaHoa can contextva lise and /an Personalise Fre messaging to rt brapects ang Astonen mame CUS-homen Cen-kyre Op pst0ach . Dertabare abbsicach te Lettes Hp, 2 APRsIOdch tee. = 40 $TIE base a) File pmocesstn system hak mane gy, siedundancy 1° whereas “DRM has tex medundancy- 2) FIIe psloceming float gram 5 Tat MTT gnc 7 3 | int main ) ae weight We 5 Beanke CP 4) B Wy. Kogan); can (Ep, & Wie gram )7 mont Ci'sum ef tuo num ben “EY, bh. KTlhegnam e+ Ws gram); a

You might also like