Вы находитесь на странице: 1из 9

1. Which the following statements about ASP.NET directives are correct ?

a. The @Page directive associates a age or control to the current age.


b. The @!aster directive defines attributes for a web age saved as .as".
c. The @Import directive imports a namespace which helps to include classes
and interfaces.
d. The @Assembly directive associates an assembly to a page or any control.
#. Which the following statements about $tml%mage control roerties are correct ?
a. The Align roert& retrieves the alignment of the image in relation to other controls
on the web age.
b. The S'( roert& secifies the te"t to be disla&ed when an image is not disla&ed
on the web age.
c. The ID property specifies or retrieves the identifier that is assigned to the
image on the server control.
d. The Alt roert& secifies the height and width of the image to be disla&ed on the
web age.
). Which the following statements about the *ase+alidator class roerties are correct ?
a. The (ontrolTo+alidate roert& secifies whether the related inut control is
validated.
b. The disla& roert& retrieves the identifier of the inut Web server control to be
validated.
c. The ErrorMessage property specifies the error message text to be displayed
when validation is not performed.
d. The is+alid roert& secifies the behavior of the error message to be disla&ed in a
validation control.
,. Which the following statements about -ebugging are correct ?
a. Debugging is a process wherein the errors in the application are located and
eliminated.
b. -ebug .isteners are classes used to collect/ store/ disla&/ and route the trace
debug messages.
c. The Watch window/ under the debug menu/ is used to add and maniulate
debuggers.
d. A brea0oint is a oint in the source code at which the alication e"ecution stars
debugging.
1. Which of the following technologies are ASP based on ?
a. omponent !b"ect Model
b. -ocument 2b3ect !odel
c. 2en Service %nterface -efinitions
d. #in$% Application &rogram Interface
4. Which of following statements about %%S are correct?
a. %%S fails when it comes to rovide scalabilit& or addition of more s&stems without loss
of erformance.
b. II' provides an application isolation environment which allows each #eb
application to function individually.
c. II' provides advanced authentication and authori(ation features to protect the
system from unauthori(ed access.
d. %%S rovides the %%S !anager that does not allow users to configure the %%S according
to their ersonal needs.
5. Which of the following are latest features of +isual Studio #661 %-E7s Web develoment
environment?
a. %mroved (ode *ehind !odel
b. 'implified #eb &age Designing
c. Secure Web Site Publishing
d. )isual #eb Developer.
*. #hich of the following statements related to the A'&.+ET #eb &age ode Model
are correct,
a. 'mart navigation feature retains the focus for an element or control even when
the #eb page is refreshed.
b. 8nli0e single9file age model files. (ode9behind age model files onl& derive event
handlers from the age class.
c. Mar-up files are saved with extension .aspx while the class files are saved with
the extension .aspx.cs.
d. The single9file and code9behind age models e"hibit different age directive/ scrit
code/ and user interface code la&out.
:. Which of the following statements about $tt'e;uest class roerties are correct?
a. The AlicationPath roert& retrieves the client7s browser attributes such as its
name.
b. The ontent.ength property specifies the length of the entire client re/uest
content.
c. The 0ile&ath property retrieves the virtual path of the page re/uested by the
browser.
d. The <uer&String roert& retrieves the $TTP data transfer method used b& the
client.
16. Which one of the following codes retrieves and disla&s the length of the client re;uest ?
a. 'esonse.Write=>(ontent .ength ? > @ 'esonse..engthAB
b. 'esonse.Write=>(ontent .ength ? > @ Server.(ontent.engthAB
c. 'e;uest.Write=>(ontent .ength ? C @ 'esonse.(ontent.engthAB
d. 1esponse.#rite23ontent .ength 4 3 5 1e/uest.ontent.ength67
11. Dou want to create a calendar that will allow the user to select either a single da& or
select an entire wee0 ? Which one of the following code will hel &ou to achieve this ?
a. (alendar cal(oman& E new (alendar=AB cal(oman&.Selection!ode E
(alendarSelection!ode.-a&B
b. (alendar cal(oman& E new (alendar=AB cal(oman&.Selection!ode E
(alendarSelection!ode.Wee0B
c. (alendar cal(oman& E new (alendar=AB cal(oman&.Selection E
(alendarSelection.-a&Wee0B
d. alendar calompany 8 new alendar267 calompany.'electionMode 8
alendar'electionMode.Day#ee-7
1#. The base class of the chec0bo" Web Server control is FFFFFFF.
a. 'ystem.#eb.9I.#ebontrols
b. S&stem.Web.8%.Web(ontrols.(hec0*o"
c. S&stem.Web.8%.Web(ontrols..ist(ontrol
d. S&stem.Web.8%.Web(ontrols.(hec0*o".ist.
1). Which one of the following codes will create a menu named / mnu(ollege/ at runtime
and will add an item named/ mnuitem(ourses/ to it?
a. !enu mnu(ollege E new !enu=AB !enu%tem mnuitem(ourses E new
!enu%tem=>(oursesCAB mnu(oman&.%tems.Aend=mnuitem(oursesAB
b. Menu mnuollege 8 new Menu267 MenuItem mnuitemourses 8 new
MenuItem23ourses:67 mnuompany.Items.Add2mnuitemourses67
c. !enu mnu(ollege E new !enu=AB !enu%tem mnuitem(ourses E new
!enu%tem=>(oursesCAB mnu(oman&.%tems.%nsert=mnuitem(oursesAB
d. !enu mnu(ollege E new !enu=AB !enu%tem mnuitem(ourses E new
!enu%tem=>(oursesCAB mnu(oman&.%tems.!odif&=mnuitem(oursesAB
1,. Which one of the following codes allows ;uic0 navigation to the region b& ressing A.T
0e& and the access 0e&/ >GC?
a. hsot%tem.ShortcutHe& E >GCB
b. phspotItem.Access;ey 8 30:7
c. hsot%tem.Navigate E >GCB
d. hsot%tem.Post*ac0+alue E >GCB
11. Which one of the following codes activates the first vies control ?
a. mvw*oo0.ist.Active+iew%nde" E 1B
b. mvw*oo0.ist.Active+iew E 6B
c. mvw*oo0.ist.Active+iew E 1B
d. mvw<oo-.ist.Active)iewIndex 8 =7
14. Which one of the following codes sets the !ethod roert& of the html form/
hfrm%nvoice-etails/ to Post for submitting form data information to the server?
a. hfrm%nvoice-etails.assign!ethod E >P2STCB
b. hfrmInvoiceDetails.Method 8 3&!'T:7
c. hfrm%nvoice-etails.set!ethod E >P2STCB
d. hfrm%nvoice-etails.!ethod+alue E >P2STCB
15. Suose a +alidationSummar& control/ valsEmlo&ee-etails/ has a roert&
Enable(lientScrit. Which one of the following codes will restrict the user to access
client scriting?
a. valsEmployeeDetails.Enablelient'cript 8 false7
b. valsEmlo&ee-etails.Enable(lientScrit E nullB
c. Enable(lientScrit.valsEmlo&ee-etails E falseB
d. Enable(lientScrit.valsEmlo&ee-etails E nullB
1I. Suose the Alication variable 8serName has the value Anna/ and the user wants to
rovide access to the first Alication ob3ect. Which one of the following codes will hel
&ou to achieve this tas0?
a. AlicationJ>8serNameCK E >AnnaCB 'esonse.Write=>8serName is ? > @
Alication%temsJ6KAB
b. AlicationJ>8serNameCK E >AnnaCB 'esonse.Write=>8serName is ? > @
Alication%temJ1KAB
c. AlicationJ>8serNameCK E >AnnaCB 'esonse.Write=>8serName is ? > @
AlicationsJ1KAB
d. Application>39ser+ame:? 8 3Anna:7 1esponse.#rite239ser+ame is 4 3 5
Applications>=?67
1:. Which one of the following classes in the S&stem.Web.!obile namesace contains the
device filters collection to be included in the mobile Web alication?
a. -eviceGilterElement
b. Device0ilters'ection
c. !obile(aabilities
d. -eviceGilters
#6. Suose the user wants to trace a age/ disla& the tracing information b& collecting the
trace information for 1 re;uests. Which one of the following code hels &ou to achieve
this tas0?
a. LenableECtrueC 2ututECtrueC re;uest.imitE >1CMN
b. @trace enable8:true: page!utput8:true: re/uest.imit8:A:BC
c. Ltrace enableE>trueC age2ututECtrueC limitEC1CMN
d. Ltrace enableECtrueC disla&ECtrueC re;uestEC1CMN
#1. Which of the following statements about Selection Web Server (ontrols are correct?
a. The (hec0*o" control is used to create a grou of chec0 bo" controls.
b. The 'adio*utton control is used to create a grou of radio buttons.
c. The DropDown.ist control is used to create a dropDdown list.
d. The .ist<ox control allows the user to select multiple items from a list.
##. Which of the following statements about the (alendar and Ad'otator controls are
correct?
a. The alendar control displays a singleDmonth calendar and allows the user to
select dates.
b. The Ad'otator control is used to rotate the selected banner advertisements
se;uentiall&.
c. The Toda&s-ate roert& secifies or retrieves the date that is selected.
d. The Impressions element specifies the number of the ads and their of rolation.
#). Which of the following statements about the %mage!a class roerties are correct?
a. The $otSot!ode roert& retrieves the mode of a collection of $otSot ob3ects.
b. The Image9rl property retrieves the location of an image to display in the
image control.
c. The AlternateText property retrieves alternate text when the Image is
unavailable.
d. The $otSots roert& secifies or retrieves the behavior for the $otSot ob3ect.
#,. Which of the following statements about the $T!. server inut controls are correct?
A. The $tml%nutTe"t control allows the develoer to create a single line te"tbo" to
accet user inut.
*. The $tml%nut(hec0*o" control allows the develoer to access the Linut
t&eEchec0bo"N $T!. element.
(. The $tml%nut%mage control allows the develoer to create a button that disla&s an
image on the Web form.
-. The $tml%nut*utton control creates a button that the form submits/ resets or siml&
ushes.
a. *
b. AE <
c. E D
d. A/ (
#1. Which of the following statements about Tracing are correct?
A. Tracing in ASP.NET refers to the rocess of monitoring the e"ecution of ASP.NET
Web alications.
*. Alication9level tracing can be enable b& enabling the @Page directive in the
re;uired Web ages.
(. The LtraceN tag is added to the Web.(onfig file to enable age9level tracing within
Web alications.
-. While enabling tracing/ oening and closing tags for Ls&stem.WebN are added within
the LconfigurationN tag.
a. <E
b. A/ */ (
c. (/ -
d. AE D
#4. Which of the following statements about the .oc0 and 8nloc0 methods are correct?
a. The .oc- method prevents other users from altering the variables stored in the
Application ob"ect.
b. The 8nloc0 method bloc0s attemts b& other wor0er threads to access an&thing in
alication state.
c. !nly the thread that invo-ed .oc- method can unbloc- the application ob"ect
by calling 9n.oc-26 method.
d. The .NET Gramewor0 does not remove a loc0 even if the re;uest comletes/ times
out/ or fails.
%F. #hich of the following statements related to A'&.+ET are correct,
a. A Web Gorm refers to a grou of servers that host the same site.
b. A memor& lea0 is a bug that revents a rogram from allocating memor&.
c. aching refers to the process of storing a copy of an accessed image or page.
d. The #G'I#GH editor allows developers to drag and drop controls onto a #eb
0orm.
#I. Which of the following statements about Web(ontrols class roerties are correct?
a. The <ac-olor property specifies the bac-ground color of the #eb server
control.
b. The 0oreolor property retrieves the foreground color of the #eb server
control.
c. The #idth property specifies or retrieves the width of the #eb server control.
d. The +isible roert& secifies or determines whether the Web server is e"ecuting or
not.
%I. #hich of the following statements about +avigation #eb ontrols are correct,
a. !enu/ Tree+iew!a and Site!a are navigation controls rovided b& ASP.NET.
b. An JM. menu file can be lin-ed to a Menu control and be used as an internally
coded menu.
c. A tree view can be considered as an expanding and contracting menu.
d. The 0ind+ode method is an important method of the Tree)iew control.
)6. Which of the following statements about the various validation controls are correct?
a. (omare+alidator evaluates inut value to chec0 whether it is valid as er secified
logic.
b. 1ange)alidator chec-s whether the input value is within the specified range
limit.
c. 1egularExpression)alidator chec-s whether the input value is in the specified
format.
d. 1e/uired0ield)alidator ensures that the input control is not left blan- by the
user.
)1. Which of the following statements about the S&stem.Web.!obile namesace classes
are correct?
a. The oo-ielessData class is used to store and retrieve session information
from devices.
b. The !obiles(aabilities class secifies the caabilit& information about a client
mobile device.
c. The Device0ilterElement class specifies a filter to be applied to the mobile #eb
application.
d. The -eviceGiltersSection class contains filters which can be alied to mobile Web
alications.
)#. Which of the following statements about Web server controls are correct?
a. The .abel control is used to display text on the mobile form.
b. The lin- control is used to create hyperlin-s on the mobile devices.
c. The .ist control displays items as a list and provides easy navigation.
d. The Te"t*o" control is used to reresent a hone number that is to be called.
)). Which one of the following ro3ect files in the Web Gorm alication contains the lin0s
=8'.sA to rovide information about the O!. Web service?
a. &ro"ectname.vsdisco
b. Assembl&%nfo.cs
c. -efault.as"
d. -efault.as".cs
),. Which of the following codes removes the alication variable at inde" 6?
a. Alication.'emove=6AB
b. Application.1emoveAt2=67
c. Alication.'emoveAll=6AB
d. Alication.-eleteAt=6AB
)1. Which of the following statements about $tt'esonse class roerties are correct?
a. The <uffer!utput property helps to specify whether the KTT& re/uest output is
buffered.
b. The ontentEncoding property specifies or retrieves the KTT& character set of
the response.
c. The (ontentT&e roert& retrieves coo0ies to be transmitted to the client in the
resonse.
d. The %s(lient(onnected roert& hels to secif& whether the client is connected to
the server.

Вам также может понравиться