Date post: | 03-Jun-2018 |
Category: |
Documents |
Upload: | love-to-live |
View: | 228 times |
Download: | 0 times |
of 21
8/12/2019 De Thi Ly Thuyet SJAVA
1/21
Exam Id : 167892Term Name : ACCP i7 - Sem 2Module Name : Working with Database and Securit in !a"aExam Date : 6#17#2$11Duration : %$ minutes
Total Mark : 2$
View student result
S&'D()& A)SW(* S+((&
1. &he ,,,,,,,,,, ob ect contains the resu.ts o/ e0ecuting an S 3uer 4 [0.5 Mark(s)]
A. StatementB. PreparedStatement
. !esultSet
". ,,,,,,,, acce5t in5ut 5arameters so that a sing.e 5rocedure can be used o"erthe network b se"era. c.ients with di//erent in5ut data4 [0.5 Mark(s)]
A. Stored pro#eduresB. S$% ser&er
. S$% struts
'. Stored 5rocedures can be in"oked using the ,,,,,, inter/ace4 [0.5 Mark(s)]
A. alla(le statementB. IN)*+T
. ,
-. &he ,,,,,,,,,, method o/ the connection c.ass is used to create theCa..ab.eStatement ob ects4 [0.5 Mark(s)]
1. Prepare#all /
". Set0T PE2 /
'. set3loat /
A. 1B. "
. '
4. n ,,,,,,,, each indi"idua. S statement is treated as a transaction4 [0.5 Mark(s)]
A. ommit modeB. Auto mode
http://10.0.0.23/PracticalReview/StudentResult.aspx?examId=167892http://10.0.0.23/PracticalReview/StudentResult.aspx?examId=1678928/12/2019 De Thi Ly Thuyet SJAVA
2/21
. Auto5#ommit mode
6. &o a..ow two or more statements to be grou5ed into a transaction disab.e ,,,,,,,,, mode4 [0.5 Mark(s)]
A. Auto5#ommitB. S7n#
. #ommit
8. ("ents that trigger noti/ications in *owSet ob ects are [0.5 Mark(s)]1. Mo&ement o9 a #ursor ". Insetion updation or deletion o9 a row'. ;anDB !owSet
. !DBM !owSet
?. &he ,,,,,,,,, method o/ the !D C*owSet nter/ace re"erses a.. the changesmade in the on-going transaction and re.eases an database .ocks he.d b theconnection 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 !D C *owSet inter/ace makes a.. changes thatha"e been made since the .ast commit#ro..back condition 5ermanent4 [0.5 Mark(s)]
A. exe#ute / t;rows S$%Ex#eptionB. #ommit / t;rows S$%Ex#eption
. roll(a#k / t;rows S$%Ex#eption
11. :nce the u5date*ow;< method is ca..ed changes to the database are /ina. andcannot be undone4 [1 Mark(s)]
A. TrueB. 3alse
1". &he '5date===;< method o/ *esu.tSet is used to change the data in an e0istingrow4 [1 Mark(s)]
A. True
8/12/2019 De Thi Ly Thuyet SJAVA
3/21
B. 3alse
1'. &he '5date===;< method o/ *esu.tSet is used to change the data in an e0istingrow4 [1 Mark(s)]
A. TrueB. 3alse
1-. A ,,,,,,,,,,,,,,,,,,,,,*owSet is .ightweight and seria.i>ab.e4 [1 Mark(s)]
A. >DB !owSetB. !owSet
. Dis#onne#ted !owSetD. onne#ted !owSet
14. Which o/ the /o..owing /eatures o/ !a"a 2 securit mode. checks whether thecode is 5roduced b a trustworth com5i.er? [1 Mark(s)]
A. B7te5#ode &eri9ier B. lass %oader
. ode Sour#eD. Permissions
16. Authori>ation is the 5rocess o/ granting or den ing access to a networkresource4 [1 Mark(s)]
A. TrueB. 3alse
18. Cr 5togra5h is the mechanism o/ encoding in/ormation in a secret coded/orm intended on. /or the reci5ient to access the in/ormation4 [1 Mark(s)]
A. TrueB. 3alse
1=. Which o/ the /o..owing is not an ad"antage o//ered b the !D C AP ? [1 Mark(s)]
A. Ease o9 maintainen#eB. Plat9orm independen#e
. Pro
8/12/2019 De Thi Ly Thuyet SJAVA
4/21
A. passwordB. dataSour#eName
. +rlD. userNameE.3.
.
"@.Which /eature o/ the !a"a 2 Securit mode. works in con unction with theSecurit @anager and the access contro..er to en/orce securit ru.es? [1 Mark(s)]
A. Permission lassesB. B7te5 ode Veri9ier
. lass %oader D. odeSour#eE.
3..
"1. &he ,,,,,,, c.ass is used to 5roduce a 5air o/ 5ub.ic and 5ri"ate ke s /or as5eci/ied a.gorithm4 [1 Mark(s)]
A. erti9i#ate3a#tor7B. e73a#tor7
. e7Pair enerator D. e7StoreE.3.
.
"". &he ,,,,,,,,, inter/ace is used as the to5-.e"e. inter/ace /or a.. o5a3ue ke s4[1 Mark(s)]
A. e7B. e7Pair enerator
. erti9i#ate3a#tor7D. e7Spe#E.3.
.
"'. A /i.e storing the digita. signature a.ong with its corres5onding 5ub.ic and5ri"ate ke s is known as ,,,,,,,,,,4 [1 Mark(s)]
A. ke7storeB. Di
8/12/2019 De Thi Ly Thuyet SJAVA
5/21
D. SiA! 9ileE.3.
.
"-. ,,,,,,,, is used to connect the !a"a a55.ications with the database4 [1 Mark(s)]
A. APIB. DBMS
. >DBD. >NS
"4. ,,,,,,, is res5onsib.e /or ensuring that an a55.ication has a consistent anduni/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 : 16788Term Name : ACCP i7 - Sem 2
8/12/2019 De Thi Ly Thuyet SJAVA
6/21
Module Name : Working with Database and Securit in !a"aExam Date : 6#16#2$11Duration : %$ minutesTotal Mark : 2$
View student result
S&'D()& A)SW(* S+((&
1. &he ,,,,,,,,, action o/ the SocketPermission c.ass grants 5ermission to createa Ser"erSocket instance4 [0.5 Mark(s)]
A. A##eptB. onne#t
. listen
". &he ,,,,,, a..ows access to c.ass .oader !a"a B@ and threads4 [0.5 Mark(s)]
A. >a&a.se#urit7.Se#urit7PermissionB. >a&a.net.NetPermission
. >a&a.lanDB
. NDB
6. &he ,,,,,,,, inter/ace o/ a"a4s3. 5ackage is used to e0ecute 5re-com5i.ed S
http://10.0.0.23/PracticalReview/StudentResult.aspx?examId=167883http://10.0.0.23/PracticalReview/StudentResult.aspx?examId=1678838/12/2019 De Thi Ly Thuyet SJAVA
7/21
statements4 [0.5 Mark(s)]
A. !EsultSetMetaDataB. PreparedStatement
. Data(aseMetaData
8. &he & 5e 1 !D C dri"er is he.5/u. /or [0.5 Mark(s)]
A. Produ#tionB. Protot7pinDB : S+BP!*T* *%:S+BNAME
B. >d(#:S+BP!*T* *%:S+BNAME. >d(#:su(proto#ol:su(name
1@.!D C dri"er is a a"a c.ass that resides in a "a.id,,,,,,,,4 [0.5 Mark(s)]
A. Memor7 lo#ationB. !oot 9older
. %ASSPAT
11. Which dri"er t 5e ma5s !D C ca..s to the under. ing network 5rotoco. whichin turn ca..s nati"e methods on the ser"er? [1 Mark(s)]
A. T7pe IB. T7pe II
. T7pe IIID. T7pe IV
1". ,,,,,,,, !D C dri"ers communicate direct. with the database engine using!a"a sockets4 [1 Mark(s)]
A. T7pe IB. T7pe II
. T7pe IIID. T7pe IV
1'. Which method checks a.. the a"ai.ab.e dri"ers /or the e.igibi.it to make aconnection? [1 Mark(s)]
A. Dri&erMana
8/12/2019 De Thi Ly Thuyet SJAVA
19/21
D. exe#ute$uer7 /
1-. Which method retrie"es the "ersion number o/ the connected database 5roductand returns the same in a string /ormat? [1 Mark(s)]
A.
8/12/2019 De Thi Ly Thuyet SJAVA
20/21
D. Data(ase
"@.Which o/ the /o..owing de/ines the 5rocess o/ con/irming the identit o/ anentit ? [1 Mark(s)]
A. Aut;oriHationB. on9identialit7
. Inte
8/12/2019 De Thi Ly Thuyet SJAVA
21/21
D. 9irst /