Trắc nghiệm Chuyên Đề 3
-
Upload
freezetheheart -
Category
Documents
-
view
229 -
download
0
Transcript of Trắc nghiệm Chuyên Đề 3
-
8/12/2019 Trc nghim Chuyn 3
1/25
Quiz # 1
1. The .NET Framework provides a runtime
environment called.. ?
A. !T
". $
. T
%.
Ans&"
'. (n A)*.NET in +orm pa,e the o-ect which
contains the user name is ////// ?
A. *a,e.0ser.(dentit
". *a,e.0ser.(s(nole
. *a,e.0ser.Name
%. None o+ the A-ove
Ans&A
2. 3hich o+ the +ollowin, lan,ua,es can -e used to
write server side scriptin, in A)*.NET?
a4 5sharp
-4 6"
c4 77
d4 a and -
Ans& d
8 3hich o+ the +ollowin, denote was to mana,e
state in an A)*.Net Application?
A. )ession o-ects". Application o-ects
. 6iew)tate
%. All the A-ove
Ans&%
9. 3hat is the -ase class +rom which all 3e- +orms
inherit?
A. !aster *a,e
". *a,e lass
. )ession lass%. None o+ the A-ove
Ans&"
:. 3)%$ stands +or ///////////////// ?
A. 3e- )erver %escription $an,ua,e
". 3e- )erver %escriptor $an,ua,e
. 3e- )ervices %escription $an,ua,e
%. 3e- )ervices %escriptor $an,ua,e
Ans&
;. 3hich o+ the +ollowin, must -e done in order to
connect data +rom some data resource to epeater
control?
A. )et the %ata)ource propert
". all the %ata"ind method
. "oth A and "
%. None o+ the A-ove
Ans&
in order +or our users to preview the
document which the want to print. 3hich propert
o+ ppd1 should ou set in order to speci+ the
document to preview?
a. *review%ocument
-. *rint%ocument
c. %ocument
d. Active%ocument
Ans& c
. 3hich o+ the +ollowin, trans+er e@ecution directl
to another pa,e?
A. )erver.Trans+er
". esponse.edirect
. "oth A4 and "4
%. None o+ the A-ove
Ans&A1. (+ one has two di++erent we- +orm controls in a
application and i+ one wanted to know whether the
values in the a-ove two di++erent we- +orm control
match what control must -e used?
A. %ata$ist
". Brid6iew
. ompare6alidator
%. $istview
Ans&11. 3hich o+ the +ollowin, is used to send email
messa,e +rom m A)*.NET pa,e?
A. )stem.3e-.!ail.!ail!essa,e
". )stem.3e-.!ail.)mtp!ail
. "oth A and "
%. None o+ the A-ove
Ans&
18. (n A)*.NET the C authorization D section contain
-
8/12/2019 Trc nghim Chuyn 3
2/25
which o+ the +ollowin, elements?
A. C den D
". C allow D
. "oth A4 and "4
%. None o+ the A-ove
Ans&
19. The tpe o+ code +ound in ode5"ehind class is
//////// ?
A. )erver5side code
". lient5side code
. "oth A4 and "4
%. None o+ the a-ove
Ans&A
1:. ommon tpe sstem is -uilt into which o+ the
+ollowin,&
A. $
". T
. 3
%. BA
Ans& A
1;. The actual work process o+ A)*.NET is taken care
- /////////////?
A. inetin+o.e@e
". aspnet/isapi.dll
. aspnet/wp.e@e%. None o+ the A-ove
Ans&
1. 3hich o+ the +ollowin, denote the propert in
ever validation control?
A. ontrolTo6alidate propert
". Te@t propert
. "oth A4 and "4
%. None o+ the A-ove
Ans& '1. )uppose one wants to modi+ a )A* messa,e in
a )A* e@tension then how this can -e achieved.
hoose the correct option +rom -elow&
A. ne must override the method eceive!essa,e
". ne must override the method (nitialize!ethod
. "oth A4 and "4
%. ne must override the method *rocess!essa,e
Ans& A
''. 3hich o+ the +ollowin, can -e used to add
alternatin, color scheme in a epeater control?
A. Alternatin,(temTemplate
". %ata)ource
. olor6alidator
%. None o+ the A-ove
Ans&A
';. 3hich o+ the +ollowin, is T0E a-out 3indows
Authentication in A)*.NET?
A. Automaticall determines role mem-ership
". ole mem-ership determined onl - user
pro,rammin,
. A)*.NET does not support 3indows
Authentication
%. None o+ the A-ove
Ans& A
'
-
8/12/2019 Trc nghim Chuyn 3
3/25
. *ro,rammin, $an,ua,e
%. %ata-ase *ro,rammin, $an,ua,e same as )Q$.
Ans&A
22. A)* stands +or //////////// ?
A. Active )ide *a,es
". Active )cript *a,es
. Active )erver *a,e
%. Active )cript *ro,ram
Ans&
28. A)*.NET provides increased per+ormance -
////////////////////?
A. supportin, active varia-les.
". runnin, $.
. runnin, compiled code.
%. usin, (() )erver
Ans&
29. 3hat is the e@tension o+ A)*.NET we- pa,es
+iles
A. .ash@
". .asp@
. .asp
%. .asc@
Ans& "
2:. Gow would ou displa AmpersandH4 in $a-el?
0se!nemonic *ropert to +alse0se!nemonic *ropert to true
0se dou-le HH
0se /H
Ans&
2;. =ou create a )Ilommand o-ect JcomK in order
to e@ecute a )Q$ Quer on a data-ase ta-le.
3hich code snippet should ou use in order to select
all records +rom the ta-le JustomersK?
a. com.ommandTe@t L J)E$ET M F!ustomersK com.ommandTpe
LommandTpe.)tored*rocedure
-. com.ommandTe@t L J)E$ET M F!
ustomersK com.ommandTpe L
ommandTpe.Ta-le%irect
c. com.ommandTe@t L JustomersK
com.ommandTpe L ommandTpe.Te@t
d. com.ommandTe@t L JustomersK
com.ommandTpe L ommandTpe.Ta-le%irect
Ans& d
2. =ou add a *rint*review%ialo, ppd1 to our
3indows Form> in order +or our users to preview the
document which the want to print. 3hich propert
o+ ppd1 should ou set in order to speci+ the
document to preview?
a. *review%ocument
-. *rint%ocument
c. %ocument
d. Active%ocument
Ans& c
////////////////////////////////////////
Quiz # '
1. A)*.NET is a ///////////////////////// ?
A. )erver )ide )criptin, Technolo,
". lient )ide )criptin, Technolo,
. *ro,rammin, $an,ua,e
%. %ata-ase *ro,rammin, $an,ua,e same as )Q$.
Ans&A
'4 3hen an .asp@ pa,e is reIuested +rom the we-
server> the output will -e rendered to -rowser in
+ollowin, +ormat.
a4 GT!$
-4 O!$c4 3!$
d4 P)*
Ans& a
24 The Asp.net server control> which provides an
alternative wa o+ displain, te@t on we- pa,e> is
a4 C asp&la-el D
-4 C asp&listitem D
c4 C asp&-utton D
Ans& a84 The +irst event to -e tri,,ered in an asp@ pa,e is.
a4 *a,e/$oad4
-4 *a,e/(nit4
c4 *a,e/click4
Ans& -
94 *ost-ack occurs in which o+ the +ollowin, +orms.
a4 3in+orms
-4 GT!$Forms
-
8/12/2019 Trc nghim Chuyn 3
4/25
c4 3e-+orms
Ans& c
:4 3hat namespace does the 3e- pa,e -elon, in
the .NET Framework class hierarch?
a4 )stem.we-.0(.*a,e
-4 )stem.3indows.*a,e
c4 )stem.3e-.pa,e
Ans& a
;4 3hich method do ou invoke on the %ata Adapter
control to load our ,enerated dataset?
a4 Fill 4
-4 E@ecuteQuer 4
c4 ead 4
Ans& a
Ta, name
-4 Add )ource> Ta, pre+i@
c4 Add )rc> Ta,pre+i@> Ta,name
Ans& c
14 To add a custom control to a 3e- +orm we have
to re,ister with.
a4 Ta,*re+i@
-4 Name space o+ the dll that is re+erenced
c4 Assem-lname
d4 All o+ the a-oveAns& d
114 ustom ontrols are derived +rom which o+ the
classes
a4 )stem.3e-.0(.3e-control
-4 )stem.3e-.0(.ustomcontrol
c4 )stem.3e-.0(.ustomcontrols.3e-control
Ans& c
1'4 Gow A)*.Net %i++erent +rom classic A)*?
a4 )criptin, is separated +rom the GT!$> ode isinterpreted seperatel
-4 )criptin, is separated +rom the GT!$> ode is
compiled as a %$$> the %$$s can -e e@ecuted on
server
c4 ode is separated +rom the GT!$ and interpreted
ode is interpreted separatel
Ans& -
124 3hats the di++erence -etween esponse.3rite4
andesponse.utput.3rite4?
a4 esponse.utput.3rite4 allows ou to +lush
output
-4 esponse.utput.3rite4 allows ou to -u++er
output
c4 esponse.utput.3rite4 allows ou to write
+ormatted output
d4 esponse.utput.3rite4 allows ou to stream
output
Ans& c
184 3h is Blo-al.asa@ is used?
a4 (mplement application and session level events
-4 %eclare Blo-al varia-les
c4 No use
Ans& a
194 There can -e more than 1 machine.con+i, +ile in a
sstem
a4 True
-4 False
Ans& -
1:4 3hat is the e@tension o+ a we- user control +ile?
a4 .Asm@
-4 .Asc@
c4 .Asp@
Ans& -1;4 3hich o+ the +ollowin, is true?
a4 (s*ost"ack is a method o+ )stem.0(.3e-.*a,e
class
-4 (s*ost"ack is a method o+ )stem.3e-.0(.*a,e
class
c4 (s*ost"ack is a readonl propert o+
)stem.3e-.0(.*a,e class
Ans& c
1
-
8/12/2019 Trc nghim Chuyn 3
5/25
-4 Application -ects
c4 6iewstate
d4 All o+ the a-ove
Ans& d
'4 3hich propert o+ the session o-ect is used to set
the local identi+ier?
a4 )ession(d
-4 $(%
c4 (tem
d4 Re
Ans& a
'14 )elect the cachin, tpe supported - A)*.Net
a4 utput achin,
-4 %ataachin,
c4 a and -
d4 none o+ the a-ove
Ans& c
'24 )elect the tpe *rocessin, model that asp.net
simulate
a4 Event5driven
-4 )tatic
c4 $inear
d4 Topdown
Ans& a
'84 %oes the Ena-le6iew)tate allows the pa,e tosave the users input on a +orm?
a4 =es
-4 No
Ans& a
'94 3hich %$$ translate O!$ to )Q$ in (()?
a4 )Q$()A*(.dll
-4 )Q$O!$.dll
c4 $()O!$.dll
d4 )Q$(().dllAns& a
';4 )elect the control which does not have an visi-le
inter+ace.
a4 %atalist
-4 %ropdown$ist
c4 epeater
d4 %ata,rid
Ans& c
'
-
8/12/2019 Trc nghim Chuyn 3
6/25
pa,es
Ans& A
////////////////////////////////////////
Quiz # 2
1. A)* server scripts are surrounded - delimiters>
which?
a. CSDCUSD
-. CSSD
c. CscriptDCUscriptD
d. CHDCUHD
Ans& -
'. Gow do ou create a File)stem-ect?
a. )erver.reate-ectJFile)stem-ectK4
-. reateJFile)stem-ectK4
c. )erver.reate-ectJ)criptin,.File)stem-ectK4
d. reate -ect&K)criptin,.File)stem-ectK
Ans& c
2. A)* comes with a standard component that
displas a di++erent advertisement each time a user
enters or re+reshes a pa,e> what is the name o+ this
component?
a. otateAds
-. Advertisement
c. Advertise
d. AdotatorAns& d
8. KCSLK is the same as&
a. CS3rite
-. CS%ocument.3rite
c. CSesponse.3rite
d. CSEIual
Ans& c
9. 3hat is the de+ault scriptin, lan,ua,e in A)*?
a. *E$-. Ecma)cript
c. 6")cript
d. Pava)crip
Ans& c
:. Gow can ou script our A)* code in
Pava)cript?
a. )tart the document with& CS lan,ua,eLKavascriptK
SD
-. End the document with& CS lan,ua,eLKavascriptK
SD
c. Pava)cript is the de+ault scriptin, lan,ua,e
d. )tart the document with& CS
lan,ua,eLKavascriptK SD
Ans&d
;. Gow do ou ,et in+ormation +rom a +orm that is
su-mitted usin, the J,etK method?
a. eIuest.Form
-. eIuest.Quer)trin,
Ans& -
-
8/12/2019 Trc nghim Chuyn 3
7/25
-. False
Ans& a
18. (nclude +iles must have the +ile e@tension J.incK
a. False
-. True
Ans& a
19. 3hat is the correct wa to include the +ile
Jtime.incK ?
a. CS include +ileLKtime.incK SD
-. Cinclude +ileLKtime.incKD
c. CVW#include +ileLKtime.incKWD
d. CS #include +ileLKtime.incK SD
Ans& c
1:. 3hich one o+ these events is a standard
Blo-al.asa event?
a. Blo-al.asa doesnt have an standard events
-. Application/n)tart
c. )ession/)tart
d. )ession/id
Ans& -
1;. Blo-al.asa is reIuired +or all 3e- sites
a. False
-. nl +or A)* 3e- sites
c. True
Ans& a1 3hich 3e- site tpe will ou
create?
A4 emote GTT*
"4 File sstem
4 FT*
%4 $ocal GTT*
8. (+ ou want to create a new 3e- site on a 3e-
server that is hosted - our (nternet service provider
()*4 and the 3e- server has Front *a,e )erver
E@tensions installed> what tpe o+ 3e- site would
ou create?
A4 $ocal GTT*
"4 File sstem
4 FT*
%4 emote GTT*
9. (+ ou want to separate our server5side code+rom our client5side laout code in a 3e- pa,e>
what pro,rammin, model should ou implement?
A4 )in,le5i le model
"4 ode5-ehind model
4 (nline model
%4 lient5server model
:. Poe created a new 3e- site usin, 6isual )tudio
' settin, the 3e- site tpe to File> and the
pro,rammin, lan,ua,e to #. $ater> Poe received anela-orate 3e- pa,e +rom his vendor> which consisted
o+ the 6endor.asp@ +ile and the [email protected] code5
-ehind pa,e. 3hat must Poe do to use these +iles?
A4 Poe can simpl add the +iles into the 3e- site>
-ecause A)*.NET 2.9 supports 3e- sites that have
3e- pa,es that were pro,rammed with di++erent
lan,ua,es.
"4 The 6endor.asp@ +ile will work> -ut Poe must
-
8/12/2019 Trc nghim Chuyn 3
8/25
rewrite the code5-ehind pa,e usin, #.
4 "oth +iles must -e rewritten in #.
%4 Poe must create a new 3e- site that contains
these +iles and set a 3e- re+erence to the new site.
hapter51$esson524
;. =ou want to make a con+i,uration settin, chan,e
that will -e ,lo-al to all 3e- and 3indows
applications on the current computer. 3hich i le do
ou chan,e?
A4 Blo-al.asa@
"4 3e-.con+i,
4 !achine.coni,
%4 Blo-al.asa
such as +ast +orward> reverse> pla>
stop> and pause. =ou want to create a sin,le event
-
8/12/2019 Trc nghim Chuyn 3
9/25
handler that process the *ost"ack +rom these "utton
controls. ther than the normal su-mit -utton> what
tpe o+ -utton can ou create as a solution?
A4 neTo!an
"4 ommand
4 eset
%4 !anTone
1:. (n %esi,n view> what is the simplest wa to
create an event handler +or the de+ault event o+ a
server control?
A4 pen the code5-ehind pa,e and write the code.
"4 i,ht5click the control and select reate
Gandler.
4 %ra, an event handler +rom the Tool-o@ to the
desired control.
%4 %ou-le5click the control.
hapter5'$esson524
1;. 3hich o+ the +ollowin, represents the -est use
o+ the Ta-le> Ta-leow> and Ta-leell controls?
A4 reatin, and populatin, a ta-le in %esi,n view
"4 reatin, a customized control that needs to
displa data in a ta-ular +ashion
4 reatin, a ta-le o+ static ima,es stored in a
+older on our site
%4 %isplain, a ta-ular result set1 others are rectan,ular> and others are
comple@ shapes. =ou want to use this ima,e as a
menu on our 3e- site. 3hat is the -est wa to
incorporate the ima,e into our 3e- site?
A4 0se (ma,e"utton and use the @5 and 5
coordinates that are returned when the user clicks to i,ure out what product line the user clicked.
"4 0se the Ta-le> Ta-leow> and Ta-leell
controls> -reak the ima,e into pieces that are
displaed in the cells> and use the Ta-leell controls
lick event to identi+ the product line that was
clicked.
4 0se the !ulti6iew control and -reak up the
ima,e into pieces that can -e dis5plaed in each 6iew
control +or each product line. 0se the lick event o+
the 6iew to identi+ the product line that was clicked.
%4 0se an (ma,e!ap control and dei ne hot spot
areas +or each o+ the product lines. 0se the
*ost"ack6alue to identi+ the product line that was
clicked.
1. =ou are writin, a 3e- site that collects a lot o+
data +rom our users. The data collec5tion spreads
over multiple 3e- pa,es. 3hen the user reaches the
last pa,e> ou need to ,ather all o+ the data> validate
it> and save it to the data-ase. =ou notice that it can
-e rather di+icult to ,ather the data that is spread over
multiple pa,es and ou want to simpli+ the
development o+ this application. 3hat control should
ou use to solve this pro-lem?
A4 The 6iew control
"4 The Te@t"o@ control
4 The 3izard control
%4 The %ataollection control
hapter52$esson514
'. =ou need to validate a vendor (% entered - a
user. The valid vendor (%s e@ist in a data-ase ta-le.
Gow can ou validate this input?
A4 *rovide a e,ularE@pression6alidator and set
the 6alidationE@pression propert toU%-$ookupXcodeY.
"4 *rovide a an,e6alidator and set the !in6alue
propert to %-$ookupcode4 and set the !a@6aue
propert to %-$ookupcode4.
4 *rovide a ustom6alidator with server5side code
to search the data-ase +or the code.
%4 *rovide a ompare6alidator and set the compare
e@pression to the name o+ a server5side +unction that
per+orms a data-ase lookup o+ the code.'1. =ou created a 3e- pa,e that contains man
controls that are validated usin, valida5tion controls.
This pa,e also contains "utton controls that per+orm
*ost"acks. =ou disa-led all o+ the client5side
validation and noticed that when ou clicked an o+
the "utton controls> the code in the lick event
handler was e@ecutin, even when some o+ the
controls did not have valid data. Gow can ou -est
-
8/12/2019 Trc nghim Chuyn 3
10/25
solve this pro-lem to ensure code is not e@ecuted
when invalid data e@ists?
A4 (n the lick event handler method +or each o+
our "utton controls> test the 3e- pa,es (s6alid
propert and e@it the method i+ this propert is +alse.
"4 (n the $oad event handler method o+ the 3e-
pa,e> test the 3e- pa,es (s6alid propert and e@it
the method i+ this propert is +alse.
4 e5ena-le the client5side script to disa-le
*ost"ack until valid data e@ists.
%4 Add the runatLKserverK attri-ute to all o+ the
validation controls.
''. =ou have created an ela-orate 3e- pa,e that
contains man validated controls. =ou want to
provide a detailed messa,e +or each validation error>
-ut ou dont have space to provide the detailed
messa,e ne@t to each control. 3hat can ou do to
indicate an error at the control and list the detailed
error messa,es at the top o+ the 3e- pa,e?
A4 )et the Te@t propert o+ the validator control to
the detailed messa,e and set the Error!essa,e
propert to an asterisk. *lace a 6alidation)ummar
control at the top o+ the 3e- pa,e.
"4 )et the Error!essa,e propert o+ the validator
control to the detailed messa,e and set the Te@tpropert to an asterisk. *lace a 6alidation)ummar
control at the top o+ the 3e- pa,e.
4 )et the ToolTip propert o+ the validator control
to the detailed messa,e and set the Error!essa,e
propert to an asterisk. *lace a 6alidation)ummar
control at the top o+ the 3e- pa,e.
%4 )et the ToolTip propert o+ the validator control
to the detailed messa,e and set the Te@t propert to
an asterisk. *lace a 6alidation)ummar control at thetop o+ the 3e- pa,e.
hapter52$esson5'4
'2. 3hich o+ the +ollowin, server5side methods o+
the Gttp)erver0tilit class can -e used to navi,ate to
a di++erent 3e- pa,e without reIuirin, a round trip to
the client?
A4 edirect
"4 !ap*ath
4 Trans+er
%4 0rl%ecode
'8. 3hich control automaticall uses the
3e-.sitemap i le to displa site map in+ormation to a
user on a 3e- pa,e?
A4 !enu
"4 Tree6iew
4 )ite!ap%ata)ource
%4 )ite!ap*ath
'9. =ou want to provide an 0p -utton +or our 3e-
pa,es to pro,rammaticall navi,ate the site map.
3hich class can ou use to access the site map
content to accomplish this?
A4 )ite!ap*ath
"4 )ite!ap%ata)ource
4 )ite!ap
%4 Gttp)erver0tilit
E4
hapter58$esson514
':. =ou need to store a users user name and
password as he or she navi,ates to di++erent pa,es on
our site so that ou can pass those credentials to
-ack5end servers. 3hich tpe o+ state mana,ement
should ou use?
A4 lient5side state mana,ement"4 )erver5side state mana,ement
';. =ou need to track nonconi dential user
pre+erences when a user visits our site to minimize
additional load on our servers. =ou distri-ute
reIuests amon, multiple 3e- servers> each runnin, a
cop o+ our application. 3hich tpe o+ state
mana,ement should ou use?
A4 lient5side state mana,ement
"4 )erver5side state mana,ement' ou need to track
search and sortin, values. =ou do not need to store
the in+ormation -etween visits to the 3e- pa,e.
3hich tpe o+ client5side state mana,ement would
meet our reIuirements and -e the simplest to
implement?
-
8/12/2019 Trc nghim Chuyn 3
11/25
A4 6iew state
"4 ontrol state
4 Gidden ields
%4 ookies
E4 Quer strin,s
'. =ou are creatin, an A)*.NET 3e- site with
dozens o+ pa,es. =ou want to allow the user to set
user pre+erences and have each pa,e process the
pre+erence in+ormation. =ou want the pre+erences to
-e remem-ered -etween visits> even i+ the user closes
the -rowser. 3hich tpe o+ client5side state
mana,ement meets our reIuirements and is the
simplest to implement?
A4 6iew state
"4 ontrol state
4 Gidden ields
%4 ookies
E4 Quer strin,s
2. =ou are creatin, an A)*.NET 3e- +orm that
searches product inventor and displas items that
match the users criteria. =ou want users to -e a-le to
-ookmark or e5mail search results. 3hich tpe o+
client5side state mana,ement meets our
reIuirements and is the simplest to implement?
A4 6iew state"4 ontrol state
4 Gidden ields
%4 ookiese.
E4 Quer strin,s
hapter58$esson5'4
21. (n which i le should ou write code to respond
to the Application/)tart event?
A4 An A)*.NET server pa,e with an .asp@
e@tension"4 3e-.coni ,
4 Blo-al.asa@
%4 An A)*.NET server pa,e with an [email protected] or
[email protected] e@tension
2'. =ou need to store state data that is accessi-le to
an user who connects to our 3e- application.
3hich collection o-ect should ou use?
A4 )ession
"4 Application
4 ookies
%4 6iew)tate
22. =ou need to store a value indicatin, whether a
user has -een authenticated +or our site. This value
needs to -e availa-le and checked on ever user
reIuest. 3hich o-ect should ou use?
A4 )ession
"4 Application
4 ookies
%4 6iew)tate
28. =ou need to lo, data to a data-ase when a users
session times out. 3hich event should ou respond
to?
A4 Application/)tart
"4 Application/End
4 )ession/)tart
%4 )ession/End
29. =our application is -ein, deploed in a load5
-alanced 3e- +arm. The load -alancer is not set up
+or user server a+init. ather> it routes reIuests to
servers -ased on their load. =our application uses
session state. Gow should ou coni,ure the
)ession)tate mode attri-ute? hoose all that appl.4
A4 )tate)erver"4 (n*roc
4 ++
%4 )Il)erver
hapter59$esson514
2:. 3hich o+ the +ollowin, statements a-out
re+erencin, master pa,e mem-ers is true? hoose all
that appl.4
A4 ontent pa,es can re+erence private properties in
the master pa,e."4 ontent pa,es can re+erence pu-lic properties in
the master pa,e.
4 ontent pa,es can re+erence pu-lic methods in
the master pa,e.
%4 ontent pa,es can re+erence controls in the
master pa,e.
2;. =ou are convertin, an e@istin, 3e- application
to use master pa,es. To maintain compati-ilit> ou
-
8/12/2019 Trc nghim Chuyn 3
12/25
need to read properties +rom the master pa,e. 3hich
o+ the +ollowin, chan,es are ou reIuired to make
to .asp@ pa,es to ena-le them to work with a master
pa,e? hoose all that appl.4
A4 Add an !asterTpe declaration.
"4 Add an !aster declaration.
4 Add a !aster*a,eFile attri-ute to the *a,e
declaration.
%4 Add a ontent*laceGolder control.
2
-
8/12/2019 Trc nghim Chuyn 3
13/25
in+ormation and add the onnection*rovider attri-ute
to that method.
4 reate a pu-lic propert that shares the users
in+ormation and add the onnection onsumer
attri-ute to that method.
%4 reate a pu-lic propert that shares the users
in+ormation and add the onnection *rovider
attri-ute to that method.
hapter5:$esson514
8:. =ou need to write a pa,e that contains a section
that should -e updated -ased on a users action. This
update should happen independentl o+ the rest o+ the
pa,e to minimize screen re+resh and maintain user
conte@t. 3hich controls must ou add to the pa,e to
ena-le this scenario? hoose all that appl.4
A4 0pdate*anel
"4 Asnc*ost"ackTri,,er
4 )cript!ana,er*ro@
%4 )cript!ana,er
8;. =ou need to write a control that will -e used
across multiple pa,es. This control should contain
updated sales +i,ures. The control should update itsel+
at various intervals i+ a containin, pa,e is le+t open.
3hich controls should ou use to ena-le this
scenario? hoose all that appl.4A4 0pdate*anel
"4 Timer
4 )cript!ana,er
%4 )cript!ana,er*ro@
8.
)et its *ro,ressTemplate contents to read
J*rocessin,> please wait.K
4 Add a *ro,ress"ar control to the pa,e. 3rite
code on the server to call -ack to the client
asnchronousl to update the *ro,ress"ar control
a+ter 9 seconds.
%4 reate a hidden CdivD ta, on our pa,e that
contains the te@t J*rocessin,> please wait.K )et the
CdivD ta,s (% to match that o+ the 0pdate*anel. )et
the 0pdate*anel controls (nterval propert to 9>.hapter5:$esson5'4
9. 3hich o+ the +ollowin, lines o+ Pava)cript
re,isters a new class ou intend to use as an e@tension
to a %! element?
A4
!Namespace.!lass.re,isterlass\!Namespa
ce.!lass \> )s.0(.ontrol4
"4
!Namespace.!lass.re,isterlass\!Namespace.!lass \> null> )s.(%is5posa-le4
4
!Namespace.!lass.re,isterlass\!Namespa
ce.!lass \> null4
%4
!Namespace.!lass.re,isterlass\!Namespa
ce.!lass \> )s.0(."ehavior4
91. =ou are writin, an APAO component that does
-
8/12/2019 Trc nghim Chuyn 3
14/25
an asnchronous *ost"ack to the server +or partial5
pa,e updates. =ou need our code to -e noti+ied when
the partial5pa,e response +irst comes -ack +rom the
server. 3hich event should ou intercept?
A4 endeIuest
"4 pa,e$oadin,
4 pa,e$oaded
%4 -ein,eIuest
9'. =ou write a Pava)cript class that uses the
!icroso+t APAO $i-rar. =ou intend to use the class
on a 3e- pa,e. 3hich o+ the +ollowin, actions
should ou take?
A4 Add the +ollowin, markup to the Chead UD
section o+ the .asp@ pa,e&Cscript
srcLKontoso0tilities.sK
tpeLKte@tUavascriptKDCUscriptD
"4 Add a )cript!ana,er control to our pa,e. (t
automaticall +inds our .s +iles in our solution. =ou
can then work with them usin, (ntelli)ense.
4 Add a )cript!ana,er control to our pa,e. Add
a re+erence nested inside the )cript!ana,er control
that points our Pava)cript +ile.
%4 0se the )cripte+erence class in our code5
-ehind +ile and set its path to the path o+ our .s +ile.
92. =ou wish to create a custom control that worksas an APAO client -ehavior. 3hat actions4 should
ou take? hoose all that appl.4
A4 reate a custom> server5side class that inherits
+rom a valid )stem.3e-.0(.ontrol.
"4 reate a custom> server5side class that inherits
+rom E@tenderontrol.
4 reate a custom> server5side class that
implements the inter+ace ()criptontrol.
%4 reate a custom> server5side class that isdecorated with the attri-ute Tar,eton5trolTpe.
hapter5;$esson514
98. =ou have a %ata)et containin, a ustomer
%ataTa-le and an rder %ataTa-le. =ou want to
easil navi,ate +rom an rder %ataow to the
ustomer who placed the order. 3hat o-ect will
allow ou to easil navi,ate +rom the rder to the
ustomer?
A4 The %ataolumn o-ect
"4 The %ataTa-le o-ect
4 The %ataow o-ect
%4 The %ataelation o-ect
99. 3hich o+ the +ollowin, is a reIuirement when
mer,in, modiied data into a %ata)et?
A4 A primar ke must -e deined on the %ataTa-le
o-ects.
"4 The %ata)et schemas must match.
4 The destination %ata)et must -e empt prior to
mer,in,.
%4 A %ata)et must -e mer,ed into the same
%ata)et that created it.
9:. =ou are workin, with a %ata)et and want to -e
a-le to displa data> sorted di++erent was. Gow do
ou do so?
A4 0se the )ort method on the %ataTa-le o-ect.
"4 0se the %ata)et o-ects )ort method.
4 0se a %ata6iew o-ect +or each sort.
%4 reate a %ataTa-le +or each sort> usin, the
%ataTa-le o-ects op method> and then )ort the
result.
hapter5;$esson5'4
9;. 3hich o+ the +ollowin, was can ou
proactivel clean up a data-ase connectionsresources? hoose two.4
A4 E@ecute the %-onnection o-ects leanup
method.
"4 E@ecute the %-onnection o-ects lose
method.
4 Assi,n Nothin, # null4 to the varia-le that
re+erences the %-onnection o-ect.
%4 reate a 0sin, -lock +or the %-onnection
o-ect.9
-
8/12/2019 Trc nghim Chuyn 3
15/25
must -e added to the connection strin,?
A4 "e,inE@ecuteLtrue
"4 !ultiThreadedLtrue
4 !ultipleActiveesult)etsLtrue
%4 Asnchronous *rocessin,Ltrue
:. 3hich o+ the +ollowin, steps must ou take to
write code usin, $(NQ to )Q$? hoose all that
appl.4
A4 Benerate an U map o+ our data-ase.
"4 e+erence the )stem.%ata.$inI namespace.
4 onnect to our data-ase throu,h a %ataonte@t
o-ect.
%4 0se a Brid6iew control to map our data-ase to
$(NQ.
hapter5;$esson524
:1. 3hich class can -e used to create an O!$
document +rom scratch?
A4 Omlonvert
"4 Oml%ocument
4 OmlNew
%4 Oml)ettin,s
:'. 3hich class can -e used to per+orm data tpe
conversion -etween .NET Framework data tpes and
O!$ tpes?
A4 OmlTpe"4 Omlast
4 Omlonvert
%4 Oml)ettin,s
:2. =ou are writin, a +unction that accepts a strin,
as a parameter. The strin, data will -e sent to the
+unction in the +orm o+ O!$. =ou need to write
$(NQ to O!$ code to Iuer this O!$ and process
it. 3hat steps should ou take? hoose all that
appl.4A4 0se the OElement.$oad method to load the
O!$ data into a new OElement.
"4 0se the OElement.*arse method to load the
O!$ data into a new OElement.
4 %e+ine a Iuer varia-le o+ tpe (Enumera-leCD
where the ,eneric tpe is set to OElement.
%4 %e+ine a Iuer varia-le o+ tpe (Enumera-leCD
where the ,eneric tpe is set to the value o+ the strin,
parameter passed to the +unction.
hapter512$esson514
:8. =ou need to create a 3e- pa,e that is availa-le
in -oth the de+ault lan,ua,e o+ En,lish and in
Berman. 3hich o+ the +ollowin, resource +i les
should ou create? hoose all that appl.4
A4 App/$ocalesourcesU*a,[email protected]@.de
"4 App/$ocalesourcesU*a,[email protected]@
4 App/$ocalesourcesU*a,[email protected]@
%4 App/$ocalesourcesU*a,[email protected]@
:9. 3hat must ou do to ena-le users to select their
own lan,ua,e pre+erences? hoose all that appl.4
A4 %e+i ne the *a,e.ulture propert.
"4 %e+i ne the *a,e.0(ulture propert.
4 verride the *a,e.(nitializeulture method.
%4 verride the *a,e.ead)trin,esource method.
::. Gow can ou de+i ne a control propert usin, a
,lo-al resource at desi,n time?
A4 (n 6isual )tudio> de+i ne the %ata6alueField
propert.
"4 (n 6isual )tudio> de+i ne the %ata)ource(%
propert.
4 (n 6isual )tudio> edit the Te@t propert.
%4 (n 6isual )tudio> edit the E@pressions4 propert:;. =ou add a ,lo-al resource with the name $o,in
- usin, 6isual )tudio. Gow can ou access that
,lo-al resource pro,rammaticall?
A4 esources.esource.$o,in
"4 esources.esourceJ$o,inK4
4 esourcesJ$o,inK4
%4 esources.$o,in
hapter512$esson5'4
:
-
8/12/2019 Trc nghim Chuyn 3
16/25
appl.4
A4 ontrols provide properties that ena-le ou to
provide hidden descriptions that are availa-le to
screen readers.
"4 ontrols are displaed in hi,h contrast -
de+ault.
4 ontrols that include a list o+ links at the top
provide hidden links to skip over the links.
%4 ontrols displa te@t in lar,e +ont sizes -
de+ault.
;. For which o+ the +ollowin, ,uidelines does
A)*.NET provide automated testin,? hoose all that
appl.4
A4 3AB *riorit 1
"4 3AB *riorit '
4 A%A
%4 Access "oard )ection 9 what pro,rammin, model should ou
implement?
A. )in,le5+ile model". ode5-ehind model
. (nline model
%. lient5server model
Ans& "
'. 3hich tpe o+ 3e-site is use+ul when ou want
to connect to our site via FT*
to mana,e our + les on a remote server?
A. The File5"ased
". The FT*5"ased. The GTT*5"ased
%. The emote5"ased
Ans& "
2. /////////////////phsicall separates our
user inter+ace laout
markup and our server5side code into two distinct
+iles.
A. The code5-ehind pro,rammin, model
". The sin,le +ile pro,rammin, model. The FT* pro,rammin, model
%. The GTT* pro,rammin, model
Ans& A
8. 3hich con+i,uration +ile to make a con+
,uration settin, chan,e that will -e ,lo-al to all 3e-
and 3indows applications on the current computer.?
A. Blo-al.asa@
". 3e-.con+ ,
. !achine.con+ ,
%. Blo-al.asa
Ans&
9. 3hich con+i,uration +ile to make a con+
,uration settin, chan,e that will a++ect onl the
current 3e- application?
A. FT*.con+i,
". 3e-.con+ ,
. !achine.con+ ,
%. Blo-al.asa@
Ans& "
:. File e@tension used +or A)*.NET +iles.
A. .3e-
". .A)*
. .A)*O
%. None o+ the a-ove
Ans&
hapter52
1. 3hich propert must -e set on a validator
control +or the validation to work?
A. ontrolTo6alidate
". ontrolTo"ind
. 6alidateontrol
%. 6alidate
Ans& A
'. 3hich validation control used to displa all the
validation error messa,es in one location a+ter the
user has tri,,ered pa,e5level validation - clickin, a
su-mit -utton?
A. ontrolTo6alidate
". ontrolTo"ind
. 6alidateontrol
%. 6alidate)ummar
Ans& %2. 3hat is used to validate comple@ strin, patterns
like an e5mail address?
A. E@tended e@pressions
". "asic e@pressions
. e,ular e@pressions
%. (rre,ular e@pressions
Ans&
8. 3hich control per+orms validation - usin,
comparison operators such as ,reater than and lessthan to compare the data entered - a user?
A. ontrolTo6alidate
". ontrolTo"ind
. ompare6alidator
%. 6alidate)ummar
Ans&
9. 3h use the ustom6alidator ontrol?
A. Allows ou to provide our custom server5side
-
8/12/2019 Trc nghim Chuyn 3
21/25
code to per+orm input validation
". Allows ou to provide our custom client5side
and server5side code to per+orm input validation
. Allows ou to provide our client5side code to
per+orm input validation
Ans& "
hapter58
1. Gow to add ookie in -rowser !achine?
A. esponse.ookies.AddJlast6isitK4.6alue L
%ateTime.Now.To)trin,
esponse.ookies.AddJlast6isitK4.E@pires L
%ateTime.Now.Add%as14
esponse.ookies.AddJlast6isitK4.*ath L
JU!ApplicationK
". esponse.ookiesJlast6isitK4.6alue L
%ateTime.Now.To)trin,
esponse.ookiesJlast6isitK4.E@pires L
%ateTime.Now.Add%as14
esponse.ookiesJlast6isitK4.*ath L
JU!ApplicationK
Ans& "
'. Gow to read Iuerstin, 6alue?
A. -ect.Querstrin,Jvaria-leNameK4
". esponse.Querstrin,Jvaria-leNameK4
. eIuest.Querstrin,Jvaria-leNameK4%. Querstrin,Jvaria-leNameK4
Ans&
2. 3hich tpe o+ state mana,ement should ou use
to store users Name and *assword?
A. lient5side state mana,ement
". -. )erver5side state mana,ement
Ans& A
8. 3hich tpe o+ client5side state mana,ement
meets our reIuirements and isthe simplest to implement?
A. . 6iew state
". ontrol state
. Gidden +elds
%. ookies
E. Quer strin,s
Ans& A
9. 3hich statement use to disa-le the session?
A. Ccon+i,urationD
Csstem.we-D
Csession)tate %isa-leLK=esKUD
CUsstem.we-D
CUcon+i,urationD
". Ccon+i,urationD
Csstem.we-D
Csession)tate modeLK%isa-leKUD
CUsstem.we-D
CUcon+i,urationD
. Ccon+i,urationD
Csstem.we-D
Csession)tate modeLKo++KUD
CUsstem.we-D
CUcon+i,urationD
Ans&
hapter59
1. 3hich pa,e allow ou to centralize the common
+unctionalit o+ our pa,es so that ou can
make updates in ust one place.?
A. ontent*a,e
". 3e- Form
. !aster*a,e
Ans&
'. The master pa,es contain which directive?A. !aster directive
". ontent %irective
. *a,e
%. 3e-
Ans& A
2. 3hich control is reIuired inside a master pa,e?
A. ontent
". ontent*laceGolder
. ontent*laceAns& "
8. 3e need to dnamicall chan,e the master pa,e
o+ a content pa,e. (n which pa,e event should ou
implement the dnamic chan,in,?
A. *a,e/$oad
". *a,e/ender
. *a,e/*reender
%. *a,e/*re(nit
-
8/12/2019 Trc nghim Chuyn 3
22/25
Ans& A
9. Need to allow users to choose their own themes. (n
which pa,e event should speci+ the userselected
theme?
A. *a,e/$oad
". *a,e/ender
. *a,e/*reender
%. *a,e/*re(nit
Ans& %
hapter5:
1. 3hich control is reIuired on all pa,es that work
with the APAO e@tensions +or A)*.NET?
A. 0pdate*anel
". )cript!ana,er
. Timer
Ans& "
'. 3hich control allows ou to de+ne an area within
our pa,e that can *ost"ack to the server and receive
updates independent o+ the rest o+ the pa,e?
A. 0pdate*anel
". )cript!ana,er
. Timer
Ans& A
2. 3hich control is used to provide notice to the user
that the pa,e has initiated a call -ack to the server?A. 0pdate*ro,ress
". 0pdateontrol
. Timer
Ans& A
8. The /////////////class is used to re,ister client
script dnamicall +rom server side code. An instance
o+ this class is accessi-le +rom the *a,e.lient)cript
propert.
A. lient)cript!ana,er". )cript!ana,er
Ans& A
9. A)*.NET includes a set o+ APAO e@tension
controls. These include the 0pdate*anel control> the
0pdate*ro,ress control> and the Timer control
A. True
". False
Ans& A
hapter5;
1. 3hich -ect is a memor5-ased relational
representation o+ data and the primar disconnected
data o-ect.
A. %ataTa-le
". %ata)et
. %ata
%. A%
Ans& "
'. The %ata)et contains a collection o+ ///////////
and ///////////////o-ects>
A. %ataTa-le
". %ataelation
. %ata)et
%. %ata-ect
Ans& A H "
2. =ou want to save a %ata)et o-ect to an O!$ + le>
-ut ou are concerned that ou mi,ht lose the ori,ina
version o+ the %ataow o-ect. Gow should ou save
the %ata)et o-ect?
A. )ave it as a O!$
". )ave it as a %ata-ase
. )ave it as a %i++,ram
Ans&
8. 3e are workin, with a %ata)et and want to -e a-leto displa data> sorted di++erent
was. Gow do ou do so?
A. 0se the )ort method on the %ataTa-le o-ect.
". 0se the %ata)et o-ects )ort method.
. 0se a %ata6iew o-ect +or each sort.
%. reate a %ataTa-le +or each sort> usin, the
%ataTa-le o-ects op method> and
then )ort the result
Ans& 9. 3hat are the two +undamental o-ects in
A%.NET?
A. %ataeader
". %ata)et
.%ataTa-le
%. %ataAdapter
Ans& A H "
:. 3hich namespaces are reIuired to ena-le the use
-
8/12/2019 Trc nghim Chuyn 3
23/25
o+ data-ases in A)*.NET pa,es?
A. )stem.%ata
". )stem.%ata.)Illient
. )stem.)Illient
%. )stem.A%
Ans& A H "
;. 3hich properties are used to -ind a %ataBrid6iew
control?
A. %ata!em-er
". %ata6alue
. %ata)ource
%. %ata%ispla
Ans& A H
custom 3e- server
control that does not rel on an one e@istin,
A)*.NET control. From what class should ou
inherit?
A. reate omposite ontrol
". (nherit +rom the 3e-control lass
. ustom ontrol
Ans& "
hapter511
1. Gow to read Application )ettin,s?
A. $a-el1.Te@t L 3e-on+i,uration!ana,er.App
J!App)ettin,K4
". $a-el1.Te@t L
3e-on+i,uration.App)ettin,sJ!App)ettin,K4
. $a-el1.Te@t L3e-on+i,uration!ana,er.App)ettin,sJ!App)et
in,K4
%. $a-el1.Te@t L
3e-on+i,uration!ana,er.onnectin,)ettin,sJ!
App)ettin,K4
Ans&
'. 3hich o+ the +ollowin, code use to create a New
on+i,uration File?
A. %im con+i, As on+i,uration L3e-on+i,uration!ana,er.pen3e-on+i,urationJ
U!AppK4
con+i,.)aveAsJc&]!App.we-.con+i,K>
on+i,uration)ave!ode.Full> True4
". %im con+i, As on+i,uration L
3e-on+i,uration!ana,erJU!AppK4
con+i,.)aveAsJc&]!App.we-.con+i,K>
on+i,uration)ave!ode.Full> True4
-
8/12/2019 Trc nghim Chuyn 3
24/25
Ans& A
2. 3hat tpe does 3e-on^
,uration!ana,er.,et)ection return?
A. 3e-on^ ,uration!ana,er.,et)ection returns
an tpe
". 3e-on^ ,uration!ana,er.,et)ection returns
an o-ect tpe
. 3e-on^ ,uration!ana,er.,et)ection returns
an lass
Ans& "
8. =ou catch an unhandled e@ception in a
*a,e/Error handler. Gow can ou access the last
error?
A. )erver.Bet$astError
". )erver.learError
. eIuest.Bet$astError
%. Application.Bet$astError
Ans& A
9. 3hich o+ the +ollowin, can ou use to catch
unhandled e@ceptions in an application?
hoose all that appl.4
A. esponse/Error
". *a,e/Error
. Application/Error
%. )erver/ErrorAns& " H
hapter512
1. (n which +older should ou store ,lo-al resource
+iles?
A. "in/,lo-alesources +older.
". ,lo-alesources +older.
. App/,lo-alesources +older.
Ans&
'. (n which +older should ou store local resource +les?
A. "in/,lo-alesources +older.
". App/$ocalesources.
. App/,lo-alesources +older.
Ans& "
2. 3e need to create a 3e- pa,e that is availa-le in
-oth the de+ault lan,ua,e o+ En,lish
and in Berman. 3hich o+ the +ollowin, resource + les
should ou create? hoose all
that appl.4
A. App/$ocalesourcesU*a,[email protected]@.de
". App/$ocalesourcesU*a,[email protected]@
. App/$ocalesourcesU*a,[email protected]@
%. App/$ocalesourcesU*a,[email protected]@
Ans& " H
8. we add a ,lo-al resource with the name $o,in -
usin, 6isual )tudio. Gow can ou
access that ,lo-al resource pro,rammaticall?
A. esources.esource.$o,in
". esources.esourceJ$o,inK4
. esourcesJ$o,inK4
%. esources.$o,in
Ans& A
hapter518
1. 3hich !ethod to save a users pro+ le to a
data-ase?
A. *ro+ile.)ave method
". *ro+ile.Add method
. *ro+ile.(nsert method
Ans& A
'. //////////////// to store and retrieve user
pro+ le in+or5
mation to a )Q$ )erver E@press data-ase calledA)*NET%".md+
A. *ro+ile
". )Il%ataAdapter
. )Il*ro+i le*rovider
Ans&
2. 3hich o+ the +ollowin, controls provides a link +or
unauthenticated users to lo, on?
A. $o,in
". $o,in6iew. $o,in)tatus
%. $o,inName
Ans&
8. =ou are creatin, a 3e- +orm that ena-les users to
lo, in to our 3e- site. 3hich o+ the +ollowin,
A)*.NET controls should ou add to the pa,e?
hoose two answers.4
A. $o,in
-
8/12/2019 Trc nghim Chuyn 3
25/25
". reate0ser3izard
. $o,inName
%. *asswordecover
Ans& A H %
hapter519
1. 3hat is a primar di++erence -etween the
standard validator controls and the mo-ile validator
controls?
A. The mo-ile validator controls dont provide
client5side validation.
". The mo-ile validator controls provide client5side
validation.
Ans& A
2. 3hat can ou do to ensure that session state is
maintained when mo-ile devices that dont accept
cookies are accessin, our mo-ile 3e- site?
A. ou should ena-le cookieless sessions in the
3e-.con+i , +ile
". ou should ena-le sessions in the 3e-.con+i ,
+ile
. ou should disa-le cookieless sessions in the
3e-.con+i , +ile
Ans& A
hapter51:
1. 3hat launch condition does a 3e- )etup *roectinclude - de+ault?
A. " de+ault> a 3e- )etup *roect do not checks
+or an (() version later than 8
". " de+ault> a 3e- )etup *roect checks +or an
(() version later than 1
. " de+ault> a 3e- )etup *roect checks +or an
(() version later than 8
Ans&
'. 3hat are the +our phases o+ a 3e- )etup *roectdeploment?
A. (nstall
". ommit
. oll-ack
%. All o+ them
Ans& %