You are on page 1of 144
eo eee peer ey Ha COMPUTER SCIENCE Timothy J Williams eg Police tothe Second Edition tw the Firat Ei sckrowledgemens = 1, Programming with © 1 3. Princh 4. Mathematical Foundations of Computer Science 96 5. Operating Systeme a 6. Automata 146 1. Principles of Compils 12. Database Man 7 242 13. Object Oriented Programming Using C++ 250 14. Ne 15. Software Engineering 272 16. SQLYPLUS, SQL. PLISQL, Forms and 279 dix: Commuter Scenes Question Paps for GATE ed Books for Rea 333, The McGraw Hill Companies eo priory it pee eed SCIENCE ‘Tis book is designed for Computer Seence students taking tele GATE, GRE and lather competitive examinations. eg. examinations for PSUs and placement examinations for software mst can ah act asa wert set-evalution tol ths sans of Computer cece and Egneing MCA, ASE. (Compute Scene ‘BcAand PGDCA. Updated wie: ey Features, inchsionofanewehapteron race POver 950 Multiple. Choice Questions ‘covering SOL PUSOL SOL"Pus, toll arm the Sudent for epores and Forme competive examinations Epanded coverage Pinciplesof pincer ansies toll questions Programming Languoges Provides it explanation for 620 athematal Foundotons of chosen icky quesons Compute Scene, Operating ysems — incades questions fom previous aaa eas papers ofthe GATE examination, ‘Over 260new eercsesplsmany ERE ubject tet in Computer ‘updated problems ‘cence and questions from the Ahundred more explanations to Screening tests conducted by ercce answer ‘raaizatons for placement. Question Paper of GATE 2005 Incl _ iii Suggested Books for Reading 1. Ab nd lia (185). Prince of Comper Design. Nao. 2 Becks LL (B89, du dct Sm Programing, ain Wee. 5. ik Us (1987, Comper Decora (972, Stems Pregramming, Tats McGraw cher, a (19), Comper Ores Tt Me tr rpc, Tata Mra mr Arne nd Oran, Tt MS ea Bakr (986), Contor Crp, Pree Hl 13. Hawt (198) Fenda of Programming apg lta 14 Kano ¥- (98), lrg CBB 15 Rely Ac end a (90), Cy Duco, Bein Cuming 16 Kc A (1949), € Pap and Pl Ann Wey. 1 eB (987), at race a ev Prete Hal 1, Lair, ABP, Ot Ore Programing Tro Cal 2. iC (985) omen of De Maton, Neel 21. Maan, M982), Comper Sew frets Pre al Preface to the Second Edition npn i emt a a nin ‘elewe) eae be hp tan og pur scence eas Condaced by Same COMP A ee Tia samt grtox bagi ot oe mecca ran fa tin oe at ee retrtorraretioteietaenmtrc mr “become popular de to simple and easy-to-endersand srr, Inthe thd caper,» ety of ere a ea eer eee an tg foe a ns He cocaine many St Enos Sonne ine ase ae Eau auth al eae ‘"'A'naw char on Ome Oat coven SQV PL {SX pn Ti le sn psn GA Preface to the First Edition ‘ss on of map ie question Bon epi in it scone eens ‘STendepune tes of Congr Sec tal Eager rns moe 100) ‘Sesaacafly sted fe cr sec cued ia eC ee Alene Ook of or ind wal wn oy ee pins fads spin ot sain wipe stuns at weld pre fe sweety gots ‘hace fom es of emery rand Me GNSS ge pectin iw ef na wi van ‘sede ving pean rpc fms unger of queens foe Me soeaig ‘Sar ceded ty Sve maton ncaa nee “ies Sk he eh cs Ge wih pening End's cube iby Duma wen ey ern Cling lice sage mabe of gar hi caper eee oma nae 2 ecmd Lape cna gwrios sm UNDE AC,» poe combintion mab ol duct pet sy seandrand nce fd apes varay ofrobemy ot ‘3 pps poping nuns ts pei emps oa Fase re Sects ‘er het duel ne gcse rage mabe procs at revit ‘Seve rues matte ad Seema pout Sod comtnas, peal sod SEicic" Acie tance sd omy af pene enced apr Vas ‘Seine i compe see creed ntl ne ft chap ‘he prizes af sages sl oaeied este i vil oe pogtming Telewest A) Whee cide bye R? (0) ABI, Be, oH (0) Abit EM. DEH ZOMMON DATA QUESTIONS. (Common Dats for Question 19, 80 Meri Comte Se (ey eng cme, ne an be male ot 2 os wo (@) spe coments os nd 9 Lax he wo manele ne. Which of he allowing cl, id he postive 10, Heiney weeds wo bres of rag, then maxima vive of a signed igs wren omer om oo reer eds ye rage he mie abe of ise iri wren ort oP on {6 owas ee (a) pms cin astern hy 118. ree ste apt ten He fone yoga Faget ta) esr emer 1 alt ree Peering ih , 2 hap te ge il be (meter menage (0 in ane ing Le emo pie ngs Whi fe fouing apt oe wees / a Gb = Cathie 6 a/b @ a= (awit sare Lento be tiger or me oe (@ bplenenaton eens, 5. Wie fhe ftowing ae repent of he enema (a) etscot (see) fenton hin at z008 1205) (0 sizeot short) opal euzeos cast) (@) izeot (dounie) i ot ew than 252002 #108") (a) aes pce sco a aigament opera (0) takes pci oper bs operas fete a 7s (8) Corson tm w npc ope caer {e) Conta fen ep ye cmon 1. Comite ong pram gmen te rege cup is a>cdat gh jelenopeatunny en xx Howl be (0) € romacs no pomp fete. {© Chere mo ee fm BCL {ponte oo ere ts mangle compe ob. as COs ner Se (6 A dec wit dane te 10 thc empce CPU. Dataie anceed e Siete he tro evenly 4 The Petar ine betwen the deve Ire eguter and CPU ce moyen. What she minum prema pit pea dvr ne men oesing ns Pon ad avis was wos os (78 Gomis ive wit fe lowing esis Tenuta Si acta, S12 secs 1 KBs, station spe 910 ym. ‘Theda apered ince sng mle whey where! oe fe ed ea 4k {en to mene mis, fr ting dh ee feds 4 Oye ed ie tmemry mth OMA cle Mamey ele tine 0 The mak ene of fine he CPU es ced rg DMA open 0 ‘28 ‘ow oo (a7 Suppose proces PP sem nda cue us which ean be ested and femal ne a tthe moun resource fqurenet of oc, ip here [130 Winch one fe fing safc on of xing at Sen Sot ) viyem a vixen © Eneimem — oy Excimer (72 Conse te along cose agen “ (ee a vs) prince (ea, baat ay ants else fee as) prune CN a 8 gets ay uals) yh he le pe he set pret andy Bete le iy the ‘Sia ce, Och oto te long 1 TRUE (073 Inapectrswishg coc ck arse om edi lng age ah avn iat dr the menage st Byler and ech tht Sins Dealer tte, then he opin paket ry ms ‘OF o> (074 Sipe he end ropes dey for 810 Mbps et hig 8 jing ‘ipa The mim me oe a6 (0 os (25 Lm mtn dap ih igen re a2 3 a os (276 Te twin ae an as Al Cnbee A he ima y aC yas 16 ber Ms ‘es pan ART myn in i wh A enen ‘ry atone bn he coded ir wor epoca wordt ‘Sica were dinaon tne pend ww) ‘sre vos oe Mach ech fhe high el ng stern ive on he et eds the mo ‘ura sing mde ram hse ed on te apt had vent (a tle eng (2) whe Ash 1) deve tee Woke Bdaeeam GUA Dares ‘Sake Tr ana rsa ning ef [RD~tsrton Sc epee vd [SER be Oe M (a) yaneven oni (0) ina ol mber (chy sivanimepal mbiplecf 9) J = # anne mil ot 3 (0) vale mpemenion depen (0 ts wae ene sept, 27, The ae ofa am able ut sre oot iit wl ie e! (ey seabed) nae fe ane (a) Ae eer may sr wth an reso {© es pace omg ele (Ga pce om eo ah o ° @- we 38. Pk te pts hat sat fo eh 36 Theos.) 1) 6 iamage in te ening de of pce ea Oee er ‘o.en “37, Pick te operators whoxe meaning i context dependent oe (a) No eh opener 3, ok he oper at aie he (ris ” 16 Fe Seeger nena hath ve he ont fest rine e"td 88", eo, cant ned (8) pent dependent wert Meee ys Omen eyed elena 42. Yeh oe fatig comments sot be + apt wc NCOs Come Sim ‘Conse te oowng nig aga. Le A, eps he gl evel on ein a he Fleck pea et A epee opto fA. The to eet oY rer sk ‘rot Tvogh§ OA AL AY AL AL DNAS A AG AS ‘ae folowing gram rpc fie machine wh ae a pa ay 2 Ss rye py Ory se tt i Cr cea acc See ss os sie Q4Qy Late ae be 0. The sae anion sogense ie ong Scie Queso Paper GATE 25 as (a) fs demise FL (8) 6 doeminsie OH. {) Lyiea CPL tut ota deine CFL CD) Ly ea demic CAL. 085 Comite fling poten oe dete ap (Given (8) es Chem done et of se A? 1 Given GV, ds Chava indepen et of a 5? () ein Prot BaNPompiae (0) aia Nong and Bi bP (©) Doe ant fie Nope (©) Bd and Sein 0.9 Comic he grata ora ena he ane i eight mentor fhe con a: Oy ubenmdbonee (@)abeami es bes Qh Con he gem soe ‘dn mercy. The long ios ole 7 Waeney, Waycmen Cmymem Omer Qt Conner suse 3 fe flowing © pop, et main Cc) fs tine ey fro (f= 0, FM, Teds (+ Line 3 +f 1 erty he comple ene sho hi ine whe cag the oj ole: (99 No compton ere (@) Only ea ere 0.62 Conder flowing citing» pte eg DF . Mei Cat Se (Retr te ec mt etna {2 pm tage (me eave (6) ase et (©) pmo este (3) Bek canbe ed meeangy (0) coun tind hy banks we go se 50, Wc of he flowing ent pwede ia CP gig an th Pron with 7 ) ertage wo (2) an gr changes os maine o machie +52 te towing pouam oat sun eptember eed ins een low @ lence) (@ none sf sae above 5 Choe eee ht eee cre 55 The flowing gr gent eres M124 24S Wamectteatne ee nt pein a ea Meu Compe See 58 conser te macie Mt * CoO eng indy Mi foe hte ees eed mtr mo (@ (oe eajtoun ome upc y artes mot 1 (rc taytccmencac mega {© (re eattosert coo rare ba) (05 a yt tin camo gg py ei min aes tn tat ty era cea es Tie ed tir il ola oe Flores Ameren octane th Onda wD af mange, 8 costo up Tere an = in i toncruceoma arpa © Lnorsmamate age (286 Leb a re pn, Ue rescy ee ow ne (0 fy irewire and rarely eee 1), trewnie ad wt eculy emerble {© Ze iy we ny creme (©) 1, wrecaniely umes [yi ceive (87 Comin te we (OI U2 (wb (01) whee # 6a sels Ea owtwe Oa) Compan Sc Quin Pp fr OATE 05 os 247 Which one of be owing pas NOT par 2.4 Cone be ting ye of gue he a var a “Tie yam feu ae (Cy more th ne Dt ite ember fats (©) aie ube of loons 249 Waa we eigen aes ofthe twig 22 wats? vests te ay an 251 Box Phas 2 a and 3 he as de as 9 alan 1 Mae al Bal ‘loc low: (st ah) shoe bl frm th seb ah a ch Sat ey tt en The to hg a @ aya 50 (© 28 ©) 1900 25 A rans ing of th tn conte y tng fa in ier tiga {Sie | desis on oo Hed aa napectse Te poh ta te ach ‘Bevomiy need ip emote ayia" ®t in Gt or we ® MeO Comp Soe (a gatoge (© ia et ve (@ pis nucle vee Yoripatchar|‘2/)/ patchar\*a'}y gatobaz(‘z'1) (seers 60, he lewg op peinteised 4a st iy (2) opus am ero ese (© pom 2 (a orp a ror eee (© pam (a) cersacrateassae (w 1234si09876 1 i 0 © pmo (a be of te toe (Grays coe (©) pameg of 00 6, Te owing ga gest rea te pinig of (Gr niga & sdseane ae ows eu us Mca Compe See ) ¥ eed 6) +3. teat) hy. 27 {3491 ¥ ew ead) umd (9) ke) (D) ¥ ey fecher 349) ent)» Mes. (©) Nester RUS or RS san ees eon Leif 8 Cand A> B be wo fancies a = ff ive a a (2) an so ot ot cons {B) feed bol a ged nt eee (©) sould oo be fed nt oo (©) tte fa aed et ota ‘nen ue hare eo pe) td) ie hes tah a ws ms ow om (A) Psst te Py (BP ound Fel (O) Py vandal Fie Bea] hs a fae at ae Une te a pin emp Sect Qe Perfor CATE 2005 a O31 What ihe sp wpe he i dr {C) String te sper Sock (D> Song devises 02 Incwuing be RAM computer pl goes ema ee (8) Wea ey noes (3) Larger RAM we ser (C) Foner pg te ocr (D) Ferersepmenon at cca 023 Ps of hs enon my Bet heh eet pa 0.24 Ta ales elton proce ARP) ee: (a) ining he item the DNS (0) ing adn he ele stray (D) Fig be MAC sess tt crest ais 028 he inn in a ncn et pa i 0.26 in two of LAN comes y ips we set fom on LAN to ae ‘rough nemae igo. ice more tat ee pat may eat tween wo LAN Fork ay hn ob ved aap ep gs Why te spine ae (2) Foran pth ing beret LANE (8) For avenge nh sng pas (© Forfa wenoce (©) Forming ctsions 0.2 ho gaint lB two wits om ies for depron. The {ay 25638600, (@) 26266640 KC) BS2S612RO Mw) 286255290 (28 When of he linge ee eg 0.29 Which ne fhe ling seen tw al oso FALSE 1) Lele, detec decompo ta INP aes pone (©) Lene dodecy peering daorporion it BCNF anes pte (©) Alyson nth estab ia BENF ” Megs Compu Siee se enh pio @ seo 39691215 37M wa7ms 1. Was 9,b=Saniced.tenteeageie (0-3/2 Bte) > aDAC eaten» 7h tea for bop. ithe coon ming. tea (6) cect i eed ety 7. la for opi he codon ming. ee na pig ct be vided by 2 (6) Senuen tlmeat (@) rook names 14 Choe te crt tenet (o) 0 reese a ae cenion. (0) Nowe ale epee ae cnn (e) Sree ae enon (Antigo eps ae odo 175 Which of te allowing cme sot Eo kp ar comet (0) ner ae eae dee a. (Ines te one cane fom iin te no. (©) goto cane ed jp cao op. (@ Baty af ep cen bem 74 Wen of te ono amen abut £2 tp cot? (Contin doy pt he minder fh iret af he op (© comm epost ae th ope (3) Weamalunys be pe by se hep. (a) nascar be ose Pramas a {e) deraue case i oad cn be pac nywhore (a) ca anny be epic by ante ¢ chore cle (6 cane pe a (0 can alee be rep by anew cheno cae 1 be stent ae by wig (ar aere (return sue (any of eso ee 2. The towne pon tase (© na ting (0) ra nya Care flowing ogi gmat compte Sc Qn Paper GATE 26 a (8) Ae sea of 10 suntes (Anse ppt an. nan en wat en 8 ge ma soe itl denn mong ee we Which wo (Gop hs tim png te MST) 1B) Graph has uigee MST a ot (Cy Gap has mile is MST acho nt 1 (©) Goape C he auc pois wer flocs (7 Theme colety a oping he went es of ney elsion a 8 to oom @) owieem — ©OM) >) Oe 8 1a. 8 Band Che nay set dt Noi B)- Cua Y=(A-0)-@-0) (9 The fowing te Hae diagram of te pst ed 5 aa D embed oi ta ‘as ‘oo De {1 Le he ine gph nh 20 vere ant 100 ege. The si of he iii een ‘Svar of Ge hen, ite e akin inept oo 0 as 1) Lee dan D) Mere 12 (2 fe ees tay my ton on ie Tp wo O09 ohne w jyee a Meas Comper Se tole ee reg von ae ee 1. Car pap sec a er mt lowe 2 Unt hnk pp ven ted of gut pape Sr ugh wok ‘passa pe there ny dean) 05.030 cry one mark ech (vat ose toning Cent dvi? “(A A fection ta aes ing pine ab mgumen and retin an ner (@) fas at aes nee apse dens an nee a ©) A per ncn ht ae on perp ae! eso ee (D) A fens hey 0 noe pol a pues uct poiee (02 An Asin Dt Tape ADD (@) 484 ope nt cnt Be stats (©) 1a pe or choy topos defied i wi, et nee 103 A comm pen lope ogra agg od neta (a) bow ae pce ngage (04 We ling ee a tipi @) Anion md enopin (a) Sty panes iy Type rey coupled wi ype ale {Papen epee atte (2 and ely (0) and Wo ony (Bc) a cty (©) i ian ony (5 4 pop Pec in $0 ge ne rg [10 png he rs af 00 farPwsweteteuenee “ ad 2 Mesa Compu Scere 4 Comiderhe flwing fw ta, OO a hic fe owing conc pen the above ow cht? Pegameiag ihc n Grone wee, fone a our 19, Dai goto imide for hp i alent wing Gycontsnse(O)beesk (eh eturn (dane oftheabne (0 Isa yi he tg By pon eg 2 ge static char betlol)=Thello® Tecepicelprisee(sta\a", Belle]? “9. Uf tong clas ie ming i he wy definto, by dea wl be then wo be (8) cider oma extemal depending oh sof asec 93. The allowing prog fagmen fer sles tor = or Jess dee) sui = x1 (0) magne be gen ms (0) mates gen mae meric Mh oh vn at 0 mat pe i os 8 pl ey Tesabe cook) pgm) vote) inmate Appendix "Computer Science Question Paper for GATE 2005 CS: Computer Science and Engineering the follwing netrctions caret. 3) bom ary ‘neyo win change an amet fied ner comply nsf: 4 Thor willbe NEGATIVE mating fo Qi 0 Q', 24 mak el ed ‘og inemr aan Q31 40 QOS wl edu fr ech wrongs ‘Gatto Qs, for mean Sint i be dtd for swe for cost ners 9 put“ of QB to QES wi te pen nH te ‘Sreypmlng pati sume However eet nya sig pe (S'QE"Mae he ne swe babi suns gunn mi ese os os, te Merce Sm SUBSTRC ISS 2) cnet ming sige sn a fm Ae at eA ew mens ma oh pal eo he Siow wor rma hia ches Aon perme he ero at hy itn tu wb sere RC a a pw fe Sac pe A ee BMA pen mcs mie ULL nm eth a DSU Reon Seo gt ow ew a he it yale eft crt hh came et tli ears ae nome ay bas CHAR " MeO Cony Sime Sse nuntsd) = (3, 3s 3h (2) mum) othe It eet fh ay ma (8) Noe ote sane 9%. Conse ne ling pion Crpecat char #110 ‘nae wl tes Aray) be? (Assume eae chance cup te) (ister Ob Ce Ob ta) SDE {7 We ping ay 8 aca mame, acon all ee ay me (a) ethene base (wah ae seatte ine al) = (7.0.9) peinceirear, 2a) + al) (© Sic comple cestiy (fom fe seve (oct vate (cay va a {6 ely tease (@ soe of ee Gi venialta ® vani07 61 @vanin (@ moe of atone as oe os (4 compe dept 102. The atoning prog aren chee wore (a) pats he song 6 8 1G prim ing $95 1m) pe te nat sie Pregraming ih 6 soos? (en niin i pe f defn {eben itis fom parte @ when ki enact ment (a bth esters yb et sty (8 ene tari ay ee empy (6) te Gt ming mt eet ems (a beh sh mtb ey 108, Te falevig poem (© pn pte (a) ame fe nove alae (0 fe Coat) Ce ono Anaver ta nue tvs questions based onthe program fragment ven below cups a no so @ one cue Gn so ts so. @ om csi ‘Ring orca ppc oa saye egury som il nd 109 ‘Tae Conta th ae payer 10 ad 105, ‘he I Cun orm eon te ead gay a eto lth 10 Cone ‘Ws 20. ts query cote nl pli CoN ho aed oer ora em hat ‘rte ha bh Te pls tea Sr Tet tay 6 Cohan “Th ny fin sd iplap te Cae mo placed te mos eset oe SELECT SUBSTRITO.CHAR(SYSDATB, #) FROM DUAL. dupes he sing 0S. Te {Even ey dad gays tote Cow adn! yen 0S On a pt ‘pion pene 2 (psn pe 2 ‘Yoncan ey by xecting he PLSQL cde TPLENGTHC) NULL THEN ‘low diet epee [NVUNULL, 3 rm Sm NVLANVLNULL, 3-4) uate RV 4) “i qunry cme uber felon who xe an ema lay 2 NULL emer oul o NULL nt gel 6 NULL 7. Single hin yesh mae for Eqs a BER pegs & ea BR “ MCQH ie Compe See MeO in Compe Se rs re Shs oy soar vo ad gig gi Et 1m ede vle>, antennae avon non ei EE BR a gt won yi oma Sa BE ERE amish ORES Sena ee ee o Theta teens ume PB 8) Br Bi SEES SY ene eg: By coh sto men ne ie rs oe a aa Es Pay a {@ Noe af e sove By BY sea a vin Sa a ena Bly gp CS Skee en a bee eee bee utd (0) Anaay ema may bea aa y Sel Bi, eo ma ir a pe eee ma egy BB BY cane a a pine aetna Mio ke fe ak. ES oot ge he ES HL GMS ih en Sisvam em 8) @P gf 2) ee ee eases mi ye Ee Ca amas ene ee wee = ie ow fue (@) none of the above gee Be gE ay By “115. Which of the following statements ae comet? ep of ge bp Bh 3 hetetataatmpne some eo: BA. BY 3 12 Rouse Pa a ey Ef oP Bl ge (GREE Sts ana Bo RE BP BD Re ssn esc ney a? GM Br ii is Se pa. abe ma Be Bes Bee (a) Dorng entra wre isn, sages ie by th cn Bio BL BP Ry Rene ae a Bho BY Bh BD BY 2 Riemer ya Prana with " SOUPS SOL, PLS. Fam on Rs ” om mr ccm et 2 ty aii mn ur Oe oe cry ewe ‘ried will sow an empty second line for such customers. How do you prevent this from 2 oem oat Tweet een (0 coven ‘5 bys troe ae 10 Syed a rt 219, Te flowing rogram 23, Let il aod Fel to es hat re coe yuna flows 4) la tga () keeps on printing t= Cee gern nl i Oh ea OT a ae sn Ger be fbn rope, ‘ype a Chl age Rone an be mn (2) Top, O respectively {) Bottom, 100 respectively Pinter (3 kee @ taoweae soe 134 Woe arr sichaelnrie 9 (nate oes © te Rg ps wend ty Lethe Bea Vlion Ter the varie seat edd tos stad he mie ee By of Fre mt Geese slat eT weoeeenens are going hw et le he 03 25, (etme oe cty oe Popa 2ao, net na Repestng Fame (9) hee rid pee programming aro propane (a elon ot sted ort ee pte (© moo att er (© fag ie secincd p or om Sap ieee acne PSN SS Sie Stati wt nd eases greet paswers 3 stot sent yates se a Me 2h SM oat 0 em SATS SE at We OSB OST a SL-PLUS. SOL. PLAQL Fam an eo es (Thi tects ped Waoagh Check Bost Raio Bas. ‘19. ger ace aio ae © 3 Chick BOK itr mass “Valve Wen {a Cue Boa Pest io) Tht ‘a Ls. {© Ghats (8) Soo ote Bs ox Gram) Nene 0 tee ia) a ei Alen te mae es ck {c) a obet atelier oe me dela ack ue el ck (@) mean nee 205 Wich fe lowing plat ates incon cee FORMS sae (@)Snoe Appt) IDE ( Westoe 206 cata payed when (0) te wind tt sted ith nave peed (© hn oc tt ated ihe cave pend (2) GiLFom () New Form) Opn.) Row ee 206. Sei wae hee vile MESSAGE. LEVEL (6 esa sien of al Be esge emer hi ae (dre at prem the pay fy mage 200, Which fe flowing to eh wa ie npc at ae on {Gr Conn Bon ty Pic ‘© Ti (a) Nom of tse Moore Compe See 124, na i ftom hat etre he gr tht tse, a epee: Which of ‘Stowe samen nde aren of een oes ()movioy sexta, ct) @ anid, aaxta, cl) 125, Fon den sey mcg (0 fs anton ete swe ei (© ithe one rece enor (a) ae scuope f fanctn at ers acting ot caling envionment (8) imide be aka po Js a ed sent 1 Any Cpa {© nods pt Sat (8) somo ane 12, Chane te banner ° ‘ (a te dap 0) ene 10, Wah of he alin ire fe ats? (©) Thee sep vend om ptt of einonreagh he mir fhe ropin {0 ttcy we tained, ey hve eae sae Prong tk ” “DL Te fbi ome t Oar ia yes prineeesdnae, 392 ) ) (0) wat cope cent (0) pat 4525 (©) ps 2525 (8) toe of te tore ‘122, Te flow prog t fnc(hy tne0s S900); , t , Ps (opens 022 rete ose (0) aeaae (0 ated, faowed by ge 18) nee a te hove o> oe we 7 wie (6183) Pee eS D ‘eet wil ve ew ia oe os wo oe SQLIPLLS, SOL PUL Pond ee ey JO Spe i ENYA TET a FOSEBATNEM a 1. T ig» FUSOL eb ii fom pie eg ed (ope ‘aps oto memes 10, Le Form per ana te eid (@) Deter @) Amma Que 12 Li: BN te he ck soe sd DIN eh ta tn ae. T efarae DIN the syn (0) A urn ei cob ld yey tiger cde (0) Ares ban cane li by yet ae We, Te a ofthe “ie Res Bet pens 3 RATION a mer ‘186, Lagan ri i Chk Bo aig (a) Bak ee eiger (fom ev eae 188 You waco pve a er a vgating ps te as re in dla Wek. The coe seed epee (o)poumeter ae (sea aie McQ1 i Compe See 141, To pray we RELATION prey a ee Fo eh (0) SET-RELATION win (c) DEFINE RELATION PROPERTY tat (@) DEF-RELATION PROPERTY bain (6) A indo elon at tem, ic doped ins ama (6) Ata tm te pac wind, ach I ipayed can (@ Acne plc ono cava, ich is apie na wide (@) Ate ove we cre 170 The tea of a eck eb owed win (a) reco peep) progam et) fame) we (a) rc guy) bet gmp) aay propery cas {Geter popny iat Yer a th Atomic Quay per se Na (6 tore popny Yes th Asta Quy Fret st Ye, (6) stoned popry iets No ante Ama Query pope ta No (Gtr pny it Noo Aaa Que) pope at Ye (2 baton) day em) ext) cnc on 174 Revue vd by ta aka eed y apelin he ae of te (6) set ime pope (6) slorene (a) None o he toe ne ort 176 Wai he bing alt of For empnens? (2) Reced Ghup (9) Resed Set) Dam Sed) Obit Grp 177 Wh of he tong et pre SET_BLOCK. PROPERTY? (2) Blok Name) Paty Rane) abe 1H) Nowe a tse » MC Qh Compe See 136, The cpa of te aliwngpogram e [xed = x01) te pees (me of sone a pre ‘ey mines pis) ame he hove (a) The oar == (Me opus (©) Ths wit compton eer) None atone putetaravi0i) (a pn te mane fhe sure ce ie (pear (© prin te none oo tec code le 14. pve uta oe ning propa gmt Prarie ih e264 aeri6e 2560 @ rez26¢ 26r165 2s2166 (a) pong eager (©) eeeatoe enor (@ wine oop (0) retina compiion ero (0 pis come cone teen (a) pram cons come 14. The pine cue of print (Na O20 20 2a (326020 (@ 262 268 1s, Tae pomble upto pein (oNd AS", oeL, woeL) 2) (N62 Le) 262 162 | (16D 60 dy 162 268 146, The poole apt of prune (Ad AS", ees were) G60 262) 262 265 |) 262° 269d) 262 265 (2 pao (0) pes) pins) pit 2 14 In ch he ting ese wil he charac "Be rime? © putchar(eigered) + 2) (@) none of the above SOUPLUS SOL, PSOE Frm an Raps wi uestins 156 to 212 ae fom FOS. (om on a0 os (yur edier 0) progam eae) papery eager) propery ple (a) svencling cars () tabbed page) a dog box) a indo (a) Nelo vey (@) Noma or Er Query (6) Query ner Que (Noma Qty Emer Que warsoe (@) PUSGL Ge) JAVA) chine anege 164. The ea br th te payed in a (a Seine ye py ego te em ee mgr 16. fencer Frm, nore ue of soy pee in he aa EE] | tia cof te log ne cart pe is see? owesnmiae Omen) Tm mean ress rise To=5 Ties Dans over aur uve Din OUTPUT AUT LINES); ELSEIF a> 10) MEN mim an oUTPUT UTNE to. oir © tenth THEs Soot tee mean Dans orror UT LIN LS bests OUTPUT AUT Lise’ mow 12, Whe having mt sles pn PLSQL? 15, wna alvin ta ce me? 1s, Mca Compt See (©) Abend nn ana the Coie, (@) Valeo vara ca bea ae Festi ec cosine vale oe srs is eine ee (cally alc te iad {6} amet more om ale (@) cree taco gb vec (a) Dong exon, eo may cage tbr sae (8) Derg excen ath he in an an may age (@) Repe execison may el in fen ates fr (a) Ads eer cmt be aptilo repine varbles (8) Adis opr cmb ppd weer varie, (© Misuse oe deliv wl tae eens ie (@ None a owe (a esha be ele (esha and (@ nono te ove ‘he operas» td =e meting when sed wh pote, (othe poner pit ment tesa ar (nero tee hse wares ca be een (enemas! ary of (o dimensonl ay of 10004 an 12 oma, en a5) loa a ee Whe sarig eof mans eset hemes a aay ites epee (a) sg nen! wie prin te ie fh ie 9 wile (8 lps ot meee (a) os at ge eval a 1b) aig ne of 210 (© sip teva (@ sign S08 Ie snes is ape sve porn rape he (@ wvotdeer = sehereer (@ scharver = voidee . Wi fhe loin pees can be api ope asi? (2 eon) Malian) Cain) Noe se ( inge day (8 chat aye Go Reta 1 etic eareisns os COs Conner Se fe eName ROW PE (a) oe une (0) Thy espa (©) The we tnconsined a, Which fh fling keynote he ecto of PLSQL ncn bt (wo Oren Close FETCH DECLARE (=) ROWCOUNT of m iit carr ves the Wl nent f rows macal y the (@) RONCOUNT ofa epic cuser ges be ttl mut frown ced by he 1s. PES. (a) NO_DATA FOUND (0) TOO_MANY ROWS a PLSOL cole (0 ck nt ine tne eee Hk Wb SOLYPLUS. OL PLSQL aman eos ” 125 Seat 7 em Be epic y he stem (0 my-pseta, apd, oga) 8) OSM ap, pL 126 Stem ann epee semen 12 Sap sr ne i fal pe Wiha be town (mye) mpm) mast) my. 12, The dng of PUSOL Inge aa tse wih edi ot 130 Which of he fw fea atc Gis he enn of « PLSOL rose ec et pu! {a} mnie IN OUP VARCHARD30) — ts.nane IN VARCHAR? {© nce 18 VARCHAR (a) tcmume OUT VARCHARIIO, 13, Whi of he ftwing eB me pe te dsieon abu mene in # PLSQL ISQUERRM —@) ERR.MESG (2) CURRLERROR —()DISP_ERR (wo RDS ‘o) NPS “ey RNPS (a) waos 138, Wick the toning types tiga ed 08 DOL options? (a inate Tagger (0) DML Taser) sytem Tae) DDL Tes 194 Ia gered yas INSERT nates he ae fade ae sper 1B) setae sate td de ae Wa ised 185, Tove wre hal sop, le ie 8 136, les PLSOL cole, wialie vars ope VARCHAR a ve @ extage aoe) NULL) Ova) mf ese (G) The nn CHAR) on he ng in the dsr, (8) Tena CHAR) mary declan (tte chrcer singed nasal ed Gan dsl x HARD}. ng tit peed wi Hanks oma 10 cue a» Mc Qui Compe Since The te! wilh es {0 come he sore tn appenle te evs pip pment he te op wl be (6) rer by ton (con wien tee vale 168 sting oral utr cab dears (a) snaray wit cmon bt (©) pier charcer (© apomer acter (weet te wove 1, Cone he sos ents (a) An ete ay eat be use a amet ftcin. (© Apr fan aay cn be ped a argument econ Ht ane te apa te ua il be Prana wh s ian ay figs, ithe ae of 3) ew at oF (wcetiat + oeeesetine) i) + absent ine) at Oy ie + Dy maamen*faxtt1) 1 ba aay Which th fining apr eg? (a) The ouput ofputels) snd putty be ese () Tiecapat of pute en pate) wil be deen {e) The sup ofpute(y) spleens pnt ea ea eon ding wpe 82, 82, 89, Be Ene canbe kad & Taet=p) (31s (©) piss posterto semen nape aay Mor Compu Sey 1 DEcoDeeMODYEAR, 8 (6) DECODERHOOEAR. 4. 0 DECODEMONLYEAR. 100) ‘1, DECODEIMODIYEAR, 40) “ke lye bs reas ha ance NULL SALARY cle wich ao UNIQUE. ‘The SOU tenet SELECT COUNTISALARY) FROM EMPLOYEE WHERE SALARY NOT IN (NULL) (a) alae al employes a amine any epee (8 clue al depen ang mo epipe (aoe ey ose emplyes Who we ape epae "Wc ate lowing SQL conan ci eed oy ening dat dane (@) MODY) UPDATE (0) CHANGE) NEW (Some © Sem © 60m m Cri Compe See 190, The SOL statement SQL> SELECT Aram From FROM sf Ant B (© Cole i com ed i te WHERE hse (@) Colum sa cote ede WHERE case mt dal 193, Chane he cr seen (©) NOTNULL NULL (8) PALSE OR NULL e NULL 4 Che cn ere ht Dd 4 SQL eh i ORDER BY ne {@) Vit. Gol wil ead bole Anan, Chee (G) Anu Chev te abet iy, Cth {6} Bhupui, Tenis wi tel fore Anand Chess (@) Bp Tani wil bed efre Vis, Cll 95 eh fe fowing SELECT siemens i te tg 56? (0) SELECT SUBSTRC 1234565) FROM DUAL (6) SELECT SUBSTRU-125496" 3,2) FROM DUAL 96 The SOL stone 97 The SOL stent SELECT ROUNDS935, 2) FROM DUAL (a) sega) €) pie gtope pin 802) pins 0 “ee SOL sare SELECT SYSDATE FROM DUAL » Mogi ie conpe Since 118.4 fans th sc» ee a a epmenad eE & iner sn yf meper be dae = “18 Goi he dsaration wes 0) pute) Sabah ane ewe toa gts (8 a enermeage 18. Wat te sug oe owing progr mee? Programing ih » ‘tg cep lower aes) on he nate (a) sie pomarto9 sre in whieh bi Be 1) memo yce wil ead (4) oat aie goad ine en (el bec dos atest) te abe cnmen eae (@ mr fr ting wet en een a mt 1 rag poe Py cgi Compe See 76 Te 8b semen SELECT DECODEL 2, DECODES. 82) FROM DUAL: (Nocti @) Satine tO quan) Nome tse ‘The nent 13 questions (78-80) ar based on the flowing table (i vie ie (be Name tiny [Se pees ee wee oe (fess emesoreee a 1a eae I 7% The SQL semen Se SELECT COUNT) FROM in WHERE toh LIKE “a st pat 79. How many sees lb pine ye folowing SOL ge? SOL» SELECT AFrom.BTo FROM wanna no ( Nownd O) Freund) Draco Te SQL nema SQL> SELECT COUNT®) FROM in nla A tai info MatERE Nats = By AND Adon y= Bdsm ioe wr we 1 The SQL sent SOL SELECT COUNT) PROM nin info Ai ao WHERE Astry = Bastr.sy AND Axia y = Benton ty (4) None of se 6) ome of ee 2 The SQL sate SQLs SELECT COUNT") FROM rin nfo Ati oo lai ms ms on wr SQUIRLUS SL PL oman ers » 68 The SOL weet 10. Tse EMPLOYEE nt Sor. Com the tle eqcse 0 SQL tone. SOU> CREATE TABLE ayatie AS SELECT " FROM EMPLOYEE), SQLS INSERT 1970 mya SELECT = FROM my Tos SQL> INSERT N70 uy abe SELECT * FROM yee SQL> INSERT 670 myo SELECT = FROM my To SQL> INSERT IN70 yale SELECT + FROM ayo ite SQL wmenene SELECT COUNT) PROM MYEMP ‘ow wos (2 ws SELECT clonal FROM aya (6) ent Oru @ me of te 72. The SL semen 73 Tie Epos as 1nd hss. NUTL SALARY came which UNIQUE Test wae vies 74. The SELECT sane 75 Yih of he along SQL commas came ho i al 1 dats ae » Mc CampSece (ise fe cbching woe en et ot @) (ea le pier - (©) prston the poac-wrive-boad at the end ofthe fle (a) cre conten thee (oa male Wwimale te) we mode) ae mate (0 Va taste stow neni she tone sag am (8) The compe wit key tak of wha fama corey see (o) Ont ane fe mewn of nen anand ae acl ie (@) Sie located for vrn st ni f vereting si rg, 197, Wish othe fling comments sou be wage scree? (w Store cn canbe sigs oan ini be (nda member canbe nd wih wre pe Scat, ‘Answer the nent 4 questions, based onthe folowing decaratin. far aeoee(26] 198 cox can beascsed by —_ () crininat cox 0) ia -+ a0 (9 (rea) tee (2) cass ete et by) 19%, pincods an be acemed by (6 cera nameyt2 (3) cer ete at se my me ow wis (fn ald ain mayb ede (©) Ise sae dct ss fhe members in rs of es (@) sone of he atone (© amo be per tn fe iii {8 fom abet {o) srw tt depends te plemenaon a McQsin Compe Se ow many one wl dled by ewe en? wt 2 Wc fe feowing egal? (a ies an ome wl be jit i by ta (6 ean ing wie ued wh ight yt (8) mbes i be oie ey eat {0 ORDER BY NAMIE ASC, daplye NULL lt (6) ORDER BY NAME DESC. pays NULL ist (@) ORDER BY NAME DESC. dips NULLS ls 107 The SOL saan SELECT LENGTIK) FROM DUAL: = em sige es SOUPS SOL, PLS, ups ey 5 Which fh liming res st he ftwing ur ae et £7. Which of hei soca il he uke owing gue aed eal 0s? SELECT DISTINCTIACosNe=) WHERE Cathnce > £8 Wha Cus ha wi bie by owing ay? toot 100 "ets (a) 0 <9 ow st so ae te ye loins ns? SELECT DISTINCTAGasNm) a Tq) Sapte » 01 Camp See Anat thy nt ot eres unig ht Wel eect fm mm. Uo ae ce fre es (a) sco etre compton Poem ih ” 1 Me sop mc ino sd fo hl eto 9 on fhe 216 Tact fe allows poe 21, Tx pen of tanerming on pater it sate by biti operons le (omy @ paning © ig 1 connor tan, Coe toning pot ee 231, Ts open oa sta sich ees te eating by 1 ig oy @ () compieneniion 16) > me ofthe shove ‘Siar alice mbps BE SQLPLUS, S00 PLE, oman eo me | it lant ne folowing ey at Has enon cntmet we ee foe vs ihr en ops ‘Wo th flowing CatNun wl be taped by twin SOL gue How nay ows we dled ye long SOL ue? SELECT AGeum Which CaN wil na elie ye long SQL gue? [AND BOndredhem = ‘Pens SQUSPLS 0 PL oman ets a 48 Te SQL stem Cone he he SOL sates SELECT TO.DATBU LTR (TRIMGNOV 23, 293°), Man DD.YY") FROM DUAL: SELECT” TO. DATE (RTRIM (TRIM NOV 23, 2085 5, °Moe BD, YY") FROM ‘Which of essen ies he sie tu” ‘The next 20 questions (1-60) ae baseé onthe following tree tables. jae hae ——— ee 2 es Cm 25, tbe oe puters eenig 4 eS tego he gt te 4) Se ouime 1 plemeaation dependent 227, Hh word sizes 16, hen -P 05 wil be 208, We of te allowing operons pice at Ite pi ae fan? o ity an (@)eachane or (0 cxchate no (9) eter ire te Begining of cmp prem (@ ser complain bt eee eet (6) ster nae (Rene be formal aunt ine ere ica i iy (©) meet

You might also like