Module Name : Working with Database and Securit in !a"a Exam Date : 6#17#2$11 Duration : %$ minutes Total Mark : 2$ View student result S&'D()& A)SW(* S+((& 1. &he ,,,,,,,,,, ob-ect contains the resu.ts o/ e0ecuting an S12 3uer4 [0.5 Mark(s)] A. Statement B. PreparedStatement . !esultSet ". ,,,,,,,, acce5t in5ut 5arameters so that a sing.e 5rocedure can be used o"er the network b se"era. c.ients with di//erent in5ut data4 [0.5 Mark(s)] A. Stored pro#edures B. S$% ser&er . S$% struts '. Stored 5rocedures can be in"oked using the ,,,,,, inter/ace4 [0.5 Mark(s)] A. alla(le statement B. IN)*+T . , -. &he ,,,,,,,,,, method o/ the connection c.ass is used to create the Ca..ab.eStatement ob-ects4 [0.5 Mark(s)] 1. Prepare#all./ ". Set0T1PE2./ '. set3loat./ A. 1 B. " . ' 4. 6n ,,,,,,,,7 each indi"idua. S12 statement is treated as a transaction4 [0.5 Mark(s)] A. ommit mode B. Auto mode . Auto5#ommit mode 6. &o a..ow two or more statements to be grou5ed into a transaction7 disab.e ,,,,,,,,, mode4 [0.5 Mark(s)] A. Auto5#ommit B. S7n# . #ommit 8. ("ents that trigger noti/ications in *owSet ob-ects are8 [0.5 Mark(s)] 1. Mo&ement o9 a #ursor ". Insetion: updation or deletion o9 a row '. ;an<in< t;e entire !owSet #ontents A. 1: " B. ": ' . 1: ": ' =. ,,,,,,,,,,, is an e0am5.e o/ connected *owSet4 [0.5 Mark(s)] A. *DB !owSet B. >DB !owSet . !DBM !owSet ?. &he ,,,,,,,,, method o/ the !D9C*owSet 6nter/ace re"erses a.. the changes made in the on-going transaction and re.eases an database .ocks he.d b the connection ob-ect contained in the *owSet ob-ect4 [0.5 Mark(s)] A. roll(a#k./ t;rows S$%Ex#eption B. #ommit./ t;rows S$% Ex#eption . exe#ute./ t;rows S$% Ex#eption 1@. &he ,,,,,,,, method o/ the !D9C *owSet inter/ace makes a.. changes that ha"e been made since the .ast commit#ro..back condition 5ermanent4 [0.5 Mark(s)] A. exe#ute./ t;rows S$%Ex#eption B. #ommit./ t;rows S$%Ex#eption . roll(a#k./ t;rows S$%Ex#eption 11. :nce the u5date*ow;< method is ca..ed7 changes to the database are /ina. and cannot be undone4 [1 Mark(s)] A. True B. 3alse 1". &he '5date===;< method o/ *esu.tSet is used to change the data in an e0isting row4 [1 Mark(s)] A. True B. 3alse 1'. &he '5date===;< method o/ *esu.tSet is used to change the data in an e0isting row4 [1 Mark(s)] A. True B. 3alse 1-. A ,,,,,,,,,,,,,,,,,,,,,*owSet is .ightweight and seria.i>ab.e4 [1 Mark(s)] A. >DB!owSet B. !owSet . Dis#onne#ted !owSet D. onne#ted !owSet 14. Which o/ the /o..owing /eatures o/ !a"a 2 securit mode. checks whether the code is 5roduced b a trustworth com5i.er? [1 Mark(s)] A. B7te5#ode &eri9ier B. lass %oader . ode Sour#e D. Permissions 16. Authori>ation is the 5rocess o/ granting or dening access to a network resource4 [1 Mark(s)] A. True B. 3alse 18. Cr5togra5h is the mechanism o/ encoding in/ormation in a secret coded /orm7 intended on. /or the reci5ient to access the in/ormation4 [1 Mark(s)] A. True B. 3alse 1=. Which o/ the /o..owing is not an ad"antage o//ered b the !D9C AP6? [1 Mark(s)] A. Ease o9 maintainen#e B. Plat9orm independen#e . Pro<ram independen#e D. Vendor independen#e E. 3. A. 1?. Which o/ the /o..owing is not a 5ro5ert that has to be set be/ore 5o5u.ating a rowset obtained b using the de/au.t constructor? [1 Mark(s)] A. password B. dataSour#eName . +rl D. userName E. 3. A. "@. Which /eature o/ the !a"a 2 Securit mode. works in con-unction with the Securit @anager and the access contro..er to en/orce securit ru.es? [1 Mark(s)] A. Permission lasses B. B7te5ode Veri9ier . lass %oader D. odeSour#e E. 3. A. "1. &he ,,,,,,, c.ass is used to 5roduce a 5air o/ 5ub.ic and 5ri"ate kes /or a s5eci/ied a.gorithm4 [1 Mark(s)] A. erti9i#ate3a#tor7 B. Be73a#tor7 . Be7PairAenerator D. Be7Store E. 3. A. "". &he ,,,,,,,,, inter/ace is used as the to5-.e"e. inter/ace /or a.. o5a3ue kes4 [1 Mark(s)] A. Be7 B. Be7PairAenerator . erti9i#ate3a#tor7 D. Be7Spe# E. 3. A. "'. A /i.e storing the digita. signature a.ong with its corres5onding 5ub.ic and 5ri"ate kes is known as ,,,,,,,,,,4 [1 Mark(s)] A. ke7store B. Di<ital erti9i#ate . ke73a#tor7 D. Si<ned >A! 9ile E. 3. A. "-. ,,,,,,,, is used to connect the !a"a a55.ications with the database4 [1 Mark(s)] A. API B. DBMS . >DB D. >NS "4. ,,,,,,, is res5onsib.e /or ensuring that an a55.ication has a consistent and uni/orm access to an database4 [1 Mark(s)] A. >DB dri&er B. >a&a dri&er . *ra#le dri&er D. *DB dri&er Exam Id : 16788A Term Name : ACCP i7 - Sem 2 Module Name : Working with Database and Securit in !a"a Exam Date : 6#16#2$11 Duration : %$ minutes Total Mark : 2$ View student result S&'D()& A)SW(* S+((& 1. &he ,,,,,,,,, action o/ the SocketPermission c.ass grants 5ermission to create a Ser"erSocket instance4 [0.5 Mark(s)] A. A##ept B. onne#t . listen ". &he ,,,,,, a..ows access to c.ass .oader7 !a"a B@7 and threads4 [0.5 Mark(s)] A. >a&a.se#urit7.Se#urit7Permission B. >a&a.net.NetPermission . >a&a.lan<.!untimePermission '. An ob-ect o/ the ,,,,,,, c.ass stores the ke and certi/icate detai.s in an in- memor tab.e4 [0.5 Mark(s)] A. si<nature B. ke7Store . ip;er -. &5ica. acti"ities in"o."ed in a database a55.ication are8 [0.5 Mark(s)] 1. *penin< a #onne#tion ". ommuni#atin< wit; a data(ase '. Exe#utin< S$% statements -. !etrie&in< Cuer7 results 4. !emo&in< a #onne#tion 6. Deletin< a #onne#tion A. Statements 1: ": ': - B. Statements ": ': -: 4 . Statements ': -: 4: 6 4. &he ,,,,,,,,, has a set o/ c.asses and inter/aces used /or accessing tabu.ar data4 [0.5 Mark(s)] A. *DB B. >DB . NDB 6. &he ,,,,,,,, inter/ace o/ -a"a4s3. 5ackage is used to e0ecute 5re-com5i.ed S12 statements4 [0.5 Mark(s)] A. !EsultSetMetaData B. PreparedStatement . Data(aseMetaData 8. &he &5e 1 !D9C dri"er is he.5/u. /or [0.5 Mark(s)] A. Produ#tion B. Protot7pin< . Se#urit7 =. &he &5e 2 !D9C dri"er [0.5 Mark(s)] A. Is porta(le B. Adds se#urit7: #a#;in< and #onne#tion #ontrol . Is used 9or protot7pin< ?. &he correct snta0 /or a database '*2 is8 [0.5 Mark(s)] A. >DB: S+BP!*T**%:S+BNAME B. >d(#:S+BP!*T**%:S+BNAME . >d(#:su(proto#ol:su(name 1@. !D9C dri"er is a -a"a c.ass that resides in a "a.id,,,,,,,,4 [0.5 Mark(s)] A. Memor7 lo#ation B. !oot 9older . %ASSPATD 11. &he ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,inter/ace a..ows ou to create 5recom5i.ed S12 statements and gi"es ou the o5tion o/ s5eci/ing the 5arameters /or the statement at a .ater stage4 [1 Mark(s)] A. PreparedStatement B. Statement . alla(leStatement D. Transa#tionStatement 1". Which o/ the /o..owing e"ents trigger noti/ications in *owSet ob-ects? [1 Mark(s)] 1. Mo&ement o9 a #ursor ". Insertion: updatin< or deletion o9 a row '. ;an<in< t;e entire !owSet #ontents A. 1: " B. ": ' . 1: ' D. 1: ": ' 1'. ,,,,,,,,,,,,,,,,,,,,,,,is the 5arent inter/ace im5.emented b a.. connected *owSet ob-ects4 [1 Mark(s)] A. >d(#!owSet B. a#;ed!owSet . !owSet 1-. Which o/ the /o..owing contains 5ath o/ the c.ass and 5ermission detai.s re3uired to access a resource? [1 Mark(s)] A. Poli#7 9ile B. AllPermission #lass . 3ilePermission #lass D. Pat;Permission #lass 14. Which o/ the /o..owing c.asses is used to grant access to network resources? [1 Mark(s)] A. AllPermission B. 3ilePermission . Pat;Permission D. So#ketPermission 16. (ncr5tion con"erts origina. data into an encr5ted /orm b a55.ing ,,,,,,,,,,,,,,,,,trans/ormations4 [1 Mark(s)] A. Arit;meti#al B. Mat;emati#al . Se#ure D. ip;er 18. A ci5her disab.es encr5tion and decr5tion o5erations4 [1 Mark(s)] A. True B. 3alse 1=. Which o/ the /o..owing he.5s to co"ert a document or a message /rom its com5rehensib.e /orm into an incom5rehensib.e /ormat7 thus making it unreadab.e? [1 Mark(s)] A. Di<ital si<natures B. Be7PairAenerator #lass . r7pto<rap;7 D. S7mmetri# ke7 1?. !D9C is an acronm o/ C!a"a Database Connecti"it4C [1 Mark(s)] A. True B. 3alse "@. Which o/ the /o..owing are the ad"antages o/ !D9C? [1 Mark(s)] 1. ontinued usa<e o9 existin< data ". Vendor dependent '. Plat9orm independent -. Ease o9 use A. 1: ": ' B. ": ': - . 1: ': - D. 1: ": ': - "1. )ati"e Protoco.-A.. !a"a is ,,,,,,,,,,,,,,,!D9C dri"er4 [1 Mark(s)] A. T7pe I B. T7pe II . T7pe III D. T7pe IV "". &he ne0t;< method a..ows to tra"erse /orward b mo"ing the cursor ,,,,,,,,,,,,,,,/orward4 [1 Mark(s)] A. *ne row B. Two row . Multiple row D. Man7 #olumn "'. Which o/ the /o..owing are the characteristics o/ the Stored 5rocedures? [1 Mark(s)] A. T;e7 #ontain S$% statements usin< #onstru#ts and #ontrol stru#tures. B. T;e7 #an (e in&oked (7 name in an appli#ation t;at is usin< S$%. . T;e7 allow an appli#ation pro<ram to run in two parts su#; as t;e appli#ation on t;e #lient and t;e stored pro#edure on t;e ser&er. D. All o9 t;e a(o&e. "-. &he drawback o/ using a stored 5rocedure is .ack o/ 5ortabi.it4 [1 Mark(s)] A. True B. 3alse "4. Which o/ the /o..owing 5arameters are used in stored 5rocedure? [1 Mark(s)] 1. IN ". *+T '. IN)*+T -. *+TP+T A. 1: ": ' B. ": ': - . 1: ': - D. 1: ": ': - Exam Id : 169D78 Term Name : ACCP i7 - Sem 2 Module Name : Working with Database and Securit in !a"a Exam Date : 6#21#2$11 Duration : %$ minutes Total Mark : 2$ View student result S&'D()& A)SW(* S+((& 1. &he ,,,,,,,,,, method o/ the connection c.ass is used to create the Ca..ab.eStatement ob-ects4 [0.5 Mark(s)] 1. Prepare#all./ ". Set0T1PE2./ '. set3loat./ A. 1 B. " . ' ". 6n ,,,,,,,,7 each indi"idua. S12 statement is treated as a transaction4 [0.5 Mark(s)] A. ommit mode B. Auto mode . Auto5#ommit mode '. &o a..ow two or more statements to be grou5ed into a transaction7 disab.e ,,,,,,,,, mode4 [0.5 Mark(s)] A. Auto5#ommit B. S7n# . #ommit -. ("ents that trigger noti/ications in *owSet ob-ects are8 [0.5 Mark(s)] 1. Mo&ement o9 a #ursor ". Insetion: updation or deletion o9 a row '. ;an<in< t;e entire !owSet #ontents A. 1: " B. ": ' . 1: ": ' 4. ,,,,,,,,,,, is an e0am5.e o/ connected *owSet4 [0.5 Mark(s)] A. *DB !owSet B. >DB !owSet . !DBM !owSet 6. &he ,,,,,,,,, method o/ the !D9C*owSet 6nter/ace re"erses a.. the changes made in the on-going transaction and re.eases an database .ocks he.d b the connection ob-ect contained in the *owSet ob-ect4 [0.5 Mark(s)] A. roll(a#k./ t;rows S$%Ex#eption B. #ommit./ t;rows S$% Ex#eption . exe#ute./ t;rows S$% Ex#eption 8. &he ,,,,,,,, method o/ the !D9C *owSet inter/ace makes a.. changes that ha"e been made since the .ast commit#ro..back condition 5ermanent4 [0.5 Mark(s)] A. exe#ute./ t;rows S$%Ex#eption B. #ommit./ t;rows S$%Ex#eption . roll(a#k./ t;rows S$%Ex#eption =. &he ,,,,,,,, constructor creates a !D9C *owSet ob-ect which ser"es a thin wra55er around the resu.t set ob-ect4 [0.5 Mark(s)] A. >DB !owSet Impl.Ea&a.sCl.!esultSet res/ B. >DB !owSet Impl.Strin< url: Strin< user: Strin< password/ . >DB !owSet Impl.Ea&a.sCl/ ?. &he ,,,,,,, method mo"es the cursor to the s5eci/ied row in the *owSet4 [0.5 Mark(s)] A. a(solute.int row/ B. a9terlast./ . (e9ore3irst./ 1@. A disconnected *owSet [0.5 Mark(s)] A. Stores its data in memor7 and operates on t;at data rat;er t;an dire#tl7 operatin< on t;e data in t;e data(ase. B. Stores its data in t;e P+ and operates on t;at data rat;er t;an dire#tl7 operatin< on t;e data in t;e data(ase. . Stores its data in a #lass. 11. Which o/ the /o..owing dri"ers are 1$$E !a"a enab.ed and do not use Ca.. 2e"e. 6nter/ace .ibraries? [1 Mark(s)] A. >DB5*DB B. Nati&e API)partl7 >a&a . Net5proto#ol)all5>a&a D. Nati&e5proto#ol)all5>a&a 1". Which o/ the /o..owing inter/aces contains methods that are used /or e0ecution o/ S12 stored 5rocedures? [1 Mark(s)] A. alla(leStatement B. onne#tion . Dri&er D. Statement 1'. Which o/ the /o..owing inter/aces o/ -a"a4s3. 5ackage 5ro"ides methods /or retrie"ing data returned b a S12 statement? [1 Mark(s)] A. alla(leStatement B. onne#tion . !esultSet D. Statement 1-. :5en Data9ase Connecti"it is an A55.ication Programming 6nter/ace 5ro"ided b @icroso/t /or accessing the database4 [1 Mark(s)] A. True B. 3alse 14. &he ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,inter/ace a..ows ou to create 5recom5i.ed S12 statements and gi"es ou the o5tion o/ s5eci/ing the 5arameters /or the statement at a .ater stage4 [1 Mark(s)] A. PreparedStatement B. Statement . alla(leStatement D. Transa#tionStatement 16. Which o/ the /o..owing e"ents trigger noti/ications in *owSet ob-ects? [1 Mark(s)] 1. Mo&ement o9 a #ursor ". Insertion: updatin< or deletion o9 a row '. ;an<in< t;e entire !owSet #ontents A. 1: " B. ": ' . 1: ' D. 1: ": ' 18. ,,,,,,,,,,,,,,,,,,,,,,,is the 5arent inter/ace im5.emented b a.. connected *owSet ob-ects4 [1 Mark(s)] A. >d(#!owSet B. a#;ed!owSet . !owSet 1=. Which o/ the /o..owing contains 5ath o/ the c.ass and 5ermission detai.s re3uired to access a resource? [1 Mark(s)] A. Poli#7 9ile B. AllPermission #lass . 3ilePermission #lass D. Pat;Permission #lass 1?. Which o/ the /o..owing c.asses is used to grant access to network resources? [1 Mark(s)] A. AllPermission B. 3ilePermission . Pat;Permission D. So#ketPermission "@. (ncr5tion con"erts origina. data into an encr5ted /orm b a55.ing ,,,,,,,,,,,,,,,,,trans/ormations4 [1 Mark(s)] A. Arit;meti#al B. Mat;emati#al . Se#ure D. ip;er "1. A ci5her disab.es encr5tion and decr5tion o5erations4 [1 Mark(s)] A. True B. 3alse "". Which o/ the /o..owing he.5s to co"ert a document or a message /rom its com5rehensib.e /orm into an incom5rehensib.e /ormat7 thus making it unreadab.e? [1 Mark(s)] A. Di<ital si<natures B. Be7PairAenerator #lass . r7pto<rap;7 D. S7mmetri# ke7 "'. !D9C is an acronm o/ C!a"a Database Connecti"it4C [1 Mark(s)] A. True B. 3alse "-. Which o/ the /o..owing are the ad"antages o/ !D9C? [1 Mark(s)] 1. ontinued usa<e o9 existin< data ". Vendor dependent '. Plat9orm independent -. Ease o9 use A. 1: ": ' B. ": ': - . 1: ': - D. 1: ": ': - "4. )ati"e Protoco.-A.. !a"a is ,,,,,,,,,,,,,,,!D9C dri"er4 [1 Mark(s)] A. T7pe I B. T7pe II . T7pe III D. T7pe IV Exam Id : 178%A% Term Name : ACCP i7 - Sem 2 Module Name : Working with Database and Securit in !a"a Exam Date : 7#A$#2$11 Duration : %$ minutes Total Mark : 2$ View student result S&'D()& A)SW(* S+((& 1. &he ,,,,,,,,, action o/ the SocketPermission c.ass grants 5ermission to create a Ser"erSocket instance4 [0.5 Mark(s)] A. A##ept B. onne#t . listen ". &he ,,,,,, a..ows access to c.ass .oader7 !a"a B@7 and threads4 [0.5 Mark(s)] A. >a&a.se#urit7.Se#urit7Permission B. >a&a.net.NetPermission . >a&a.lan<.!untimePermission '. An ob-ect o/ the ,,,,,,, c.ass stores the ke and certi/icate detai.s in an in- memor tab.e4 [0.5 Mark(s)] A. si<nature B. ke7Store . ip;er -. &5ica. acti"ities in"o."ed in a database a55.ication are8 [0.5 Mark(s)] 1. *penin< a #onne#tion ". ommuni#atin< wit; a data(ase '. Exe#utin< S$% statements -. !etrie&in< Cuer7 results 4. !emo&in< a #onne#tion 6. Deletin< a #onne#tion A. Statements 1: ": ': - B. Statements ": ': -: 4 . Statements ': -: 4: 6 4. &he ,,,,,,,,, has a set o/ c.asses and inter/aces used /or accessing tabu.ar data4 [0.5 Mark(s)] A. *DB B. >DB . NDB 6. &he ,,,,,,,, inter/ace o/ -a"a4s3. 5ackage is used to e0ecute 5re-com5i.ed S12 statements4 [0.5 Mark(s)] A. !EsultSetMetaData B. PreparedStatement . Data(aseMetaData 8. &he &5e 1 !D9C dri"er is he.5/u. /or [0.5 Mark(s)] A. Produ#tion B. Protot7pin< . Se#urit7 =. &he &5e 2 !D9C dri"er [0.5 Mark(s)] A. Is porta(le B. Adds se#urit7: #a#;in< and #onne#tion #ontrol . Is used 9or protot7pin< ?. &he correct snta0 /or a database '*2 is8 [0.5 Mark(s)] A. >DB: S+BP!*T**%:S+BNAME B. >d(#:S+BP!*T**%:S+BNAME . >d(#:su(proto#ol:su(name 1@. !D9C dri"er is a -a"a c.ass that resides in a "a.id,,,,,,,,4 [0.5 Mark(s)] A. Memor7 lo#ation B. !oot 9older . %ASSPATD 11. Which dri"er t5e ma5s !D9C ca..s to the under.ing network 5rotoco.7 which in turn ca..s nati"e methods on the ser"er? [1 Mark(s)] A. T7pe I B. T7pe II . T7pe III D. T7pe IV 1". ,,,,,,,, !D9C dri"ers communicate direct. with the database engine using !a"a sockets4 [1 Mark(s)] A. T7pe I B. T7pe II . T7pe III D. T7pe IV 1'. Which method checks a.. the a"ai.ab.e dri"ers /or the e.igibi.it to make a connection? [1 Mark(s)] A. Dri&erMana<er.<etonne#tion./ B. lass.9orName./ . onne#tion.#reateStatement./ D. exe#ute$uer7./ 1-. Which method retrie"es the "ersion number o/ the connected database 5roduct and returns the same in a string /ormat? [1 Mark(s)] A. <etVersion./ B. <etDri&erVersion./ . <etData(aseVersion./ D. <etData(aseProdu#tVersion./ 14. &he "a.ue stored in an ,,,,,,,,, 5arameter in stored 5rocedures is a "ariab.e and not a constant4 [1 Mark(s)] A. IN B. *+T . IN)*+T D. P+T 16. Which characteristic o/ *esu.tSet re/ers to the abi.it to check whether the cursor stas o5en a/ter a C:@@6&? [1 Mark(s)] A. S#rolla(le B. +pdata(le . Dolda(le D. Exe#uta(le 18. Which one o/ the /o..owing *esu.tSet constants a..ows to na"igate /rom the beginning o/ a *esu.tSet to the end o/ it? [1 Mark(s)] A. T1PEFS!*%%FINSENSITIVE B. T1PEFS!*%%FSENSITIVE . T1PEFS!*%% D. T1PEF3*!GA!DF*N%1 1=. Which 5ro5ert o/ a database transaction re/ers to the abi.it o/ the D9@S to ensure that there are no con/.icts between concurrent transactions? [1 Mark(s)] A. Atomi#it7 B. Isolation . Dura(ilit7 D. onsisten#7 1?. A ,,,,,,, /i.e is an ASC66 te0t /i.e and can be com5osed with a te0t editor or the gra5hica. 5o.ictoo. uti.it4 [1 Mark(s)] A. Poli#7 B. Se#urit7 . Editor D. Data(ase "@. Which o/ the /o..owing de/ines the 5rocess o/ con/irming the identit o/ an entit? [1 Mark(s)] A. Aut;oriHation B. on9identialit7 . Inte<rit7 D. Aut;enti#ation "1. Which o/ the /o..owing /eatures o/ cr5togra5h "eri/ies and 5re"ents an unintended recei"er /rom reading the data? [1 Mark(s)] A. Aut;enti#ation B. on9identialit7 . Inte<rit7 D. Non5repudiation "". Which one o/ the /o..owing c.asses is used to check the authenticit o/ the digita. signature? [1 Mark(s)] A. Messa<eDi<est B. Si<nature . Be73a#tor7 D. erti9i#ate3a#tor7 "'. Which o/ the /o..owing c.asses manage the encoding and decoding 5arameters /or a 5articu.ar a.gorithm? [1 Mark(s)] A. Be7Store B. Al<orit;mParameters . Al<orit;mParameterAenerator D. Be7 "-. &he ,,,,,,,,,,, method o/ Connection ob-ect returns a Ca..ab.eStatement ob-ect4 [1 Mark(s)] A. prepare./ B. prepareStatement./ . prepareall./ D. #allStatement./ "4. Which one o/ the /o..owing methods mo"es the cursor backward one row in the *esu.tSet? [1 Mark(s)] A. next./ B. pre&ious./ . (e9ore3irst./ D. 9irst./