Web Development Fundamentals v9.0 (98-363)

Page:    1 / 14   
Total 203 questions

You have the following webpage and property page:


Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point.



Answer :

You have a website that contains a Web.config file with the following XML markup:


When an unauthorized user attempts to view the website, which page will be displayed?

  • A. content
  • B. blank
  • C. custom error
  • D. logon


Answer : D

Explanation:
if the request is not authorized, then the UrlAuthorizationModule aborts the lifecycle and instructs the Response object to return an HTTP 401 Unauthorized status. When using forms authentication this HTTP 401 status is never returned to the client because if the
FormsAuthenticationModule detects an HTTP 401 status is modifies it to an HTTP 302
Redirect to the login page.
* Example:
The following example grants access to Kim and members of the Admins role, while denying it to John and all anonymous users:
<authorization>
<allow users="Kim"/>
<allow roles="Admins"/>
<deny users="John"/>
<deny users="?"/>
</authorization>

One reason for compiling an application in Release mode is to:

  • A. Check the code in to version control.
  • B. Compile without debugging symbols.
  • C. Prevent changes to the code.
  • D. Compile for processor optimization.


Answer : D

You are troubleshooting a web application that contains the following XML markup in the
Web.config file:
<trace enabled-"true" localOnly-"false" pageOutput-"true" />
Instructions: For each of the following statements, select Yes if the statement is true.
Otherwise, select No. Each correct selection is worth one point.




Answer :

This question requires that you evaluate the underlined text to determine if it is correct.
The PreRender event is the last opportunity to make changes to the properties of a control before persisting the properties to the ViewState property of a webpage.
Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.

  • A. No change is needed.
  • B. Render
  • C. Init
  • D. LoadComplete


Answer : A

Which control is used to manage partial-page rendering in ASP.NET AJAX?

  • A. updatePanel
  • B. UpdateProgress
  • C. Timer
  • D. ScriptManager


Answer : A

A Web page has an <asp:Button> control and three <asp:TextBox> controls named txt1, txt2, and txt3.
When a user clicks the <asp:Button> control, the Web page calls a JavaScript function named Sum(). Sum() adds the values of txt1 and txt2, and places the resulting value into txt3.
Which attribute should you set on the <asp:Button> control to call Sum()?

  • A. OnClick="Sum();"
  • B. CommandName="Sum();"
  • C. OnCommand="Sum();"
  • D. OnClientClick="Sum();"


Answer : D

Match the data object type to its description.
Instructions: To answer, drag the appropriate data object type from the column on the left to its description on the right. Each data object type may be used once, more than once, or not at all.
Each correct match is worth one point.




Answer :

You have multiple Web sites on a Web server. One of the Web sites generates an error that causes IIS to fail.
What should you configure to prevent future IIS failures?

  • A. Worker processes
  • B. Virtual directories
  • C. Application pools
  • D. Session state


Answer : A

A Web page contains the following code:
objectmyCount = Request.QueryString["count"];
The query string does not contain a variable named count.
What happens when the code executes?

  • A. myCount is an empty string.
  • B. myCount is 0.
  • C. myCount is null.
  • D. An exception is thrown.


Answer : C

An <asp:LinqDataSource> populates an <asp:GridView> control.
You need to ensure that users can add new rows to the underlying table.
Which property should you set?

  • A. EnableUpdate="true" on the <asp:LinqDataSource> control
  • B. EnableUpdate="true" on the <asp:GridView> control
  • C. EnableInsert="true" on the <asp:LinqDataSource> control
  • D. EnableInsert="true" on the <asp:GridView> control


Answer : C

You are creating a website for your school's yearbook club. You need to store additional strings specific to the website.
Which Web.config file setting should you use?

  • A. <profile>
  • B. <localConfig>
  • C. <system.web>
  • D. <appSettings>


Answer : D

Explanation: use the Application Settings sections of your web.config file. For example
<configuration>
<system.web> ... </system.web>
<appSettings>
<add key="MyAppSetting" value="A test value." />
</appSettings>
</configuration>
This can then be used in your code by getting the value of
System.Configuration.ConfigurationManager.AppSettings["MyAppSetting"]43

One reason to turn on tracing in a Web application is to:

  • A. Modify variable values at run time.
  • B. Track call execution time during page load.
  • C. View the cookies on the local computer.
  • D. Set the order in which event handlers run.


Answer : B

How many application pools can a Web site be part of?

  • A. One
  • B. Two
  • C. Four
  • D. Eight


Answer : A

This question requires that you evaluate the underlined text to determine if it is correct.
For a webpage that connects to a SQL Server database by using a LinqDataSource control, you can ensure that any changes to data displayed on the webpage are persisted in the database by configuring the EnablcViewState property of the control.
Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.

  • A. No change is needed
  • B. EnableUpdate
  • C. EntitySetName
  • D. UpdateParameters


Answer : B

Page:    1 / 14   
Total 203 questions