Ensurepass.com Easy Test! Easy Pass! Download the complete collection of Exam's Real Q&As www.ensurepass.com Microsoft MTA 98-363 Exam Vendor:Microsoft Exam Code: 98-363 Exam Name: Web Development Fundamentals
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
Microsoft MTA 98-363 Exam
Vendor:Microsoft
Exam Code: 98-363
Exam Name: Web Development Fundamentals
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
QUESTION 1
When configuring a Windows Communication Foundation (WCF) client, where do you define the
URL for the WCF service?
A. In the registry on the client computer
B. In the Global.asax file
C. In the <endpoint> element in the configuration file
D. In the <binding> element in the configuration file
Correct Answer: C
QUESTION 2
When a Web site is created, IIS:
A. will place the Web site in the first application pool listed alphabetically on the drop-down list
in IIS.
B. will place the Web site in DefaultAppPool.
C. will not place the Web site in an application pool.
D. will prompt the administrator to create a new application pool or to select an existing one.
Correct Answer: B
QUESTION 3
Which property of the SqlDataSource control includes the name of the database and other
parameters needed to establish the connection?
A. ConnectionString
B. SelectCommand
C. GridView
D. SelectParameters
Correct Answer: A
QUESTION 4
Which statement appends the text "User not authenticated" to the trace log or the page using red
text?
A. Trace.Warn("User not authenticated");
B. Response.Write("User not authenticated");
C. Debug.Write("User not authenticated");
D. Trace.Write("User not authenticated");
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
Correct Answer: A
QUESTION 5
Building a Web application using a Release mode configuration:
A. compiles the code and optimizes it for processing.
B. prevents changes to the Web.config file.
C. prevents changes to the source code files.
D. publishes the application to a remote server.
Correct Answer: A
QUESTION 6
Which statement about Asynchronous JavaScript and XML (AJAX) partial-page updates is true?
A. An UpdateProgress control is necessary for partial-page updates.
B. The Timer control can only update a single UpdatePanel control.
C. A ScriptManager control is not necessary for partial-page updates.
D. An UpdatePanel control enables a part of your page for partial-page updates.
Correct Answer: D
QUESTION 7
You are creating a Windows Communication Foundation (WCF) service. You write the interface
shown in the exhibit. Which attribute should decorate the function?
A. WebMethod
B. OperationContract
C. ServiceContract
D. Serializable
Correct Answer: B
QUESTION 8
The following XML contains an error.
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
<PriceConstraint type="sale">Sale < Regular</PriceConstraint>
How could you correct it?
A. Enclose Sale < Regular in double-quotes.
B. Enclose the < in double quotes.
C. Enclose Sale < Regular in single-quotes.
D. Replace the < with an escape character sequence.
Correct Answer: D
QUESTION 9
You include the following markup in your Web.config file:
<authorization>
<allow users="?" />
</authorization>
Which users are allowed access?
A. No users
B. Anonymous users
C. All users who have cookies disabled
D. No anonymous users
Correct Answer: B
QUESTION 10
To successfully call a Web service in a Web application, you should:
A. ensure that port 80 is opened on the firewall.
B. ensure that port 443 is opened on the firewall.
C. ensure that port 21 is opened on the firewall.
D. ensure that port 25 is opened on the firewall.
Correct Answer: A
QUESTION 11
In a Web application that has multiple Web.config files in separate directories, how are
configuration settings applied?
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
A. The configuration settings in the Web.config file that is in the root directory take precedence
over all other Web.config files.
B. Each Web.config file applies configuration settings to its own directory and all child directories
below it.
C. Each Web.config file applies configuration settings to its own directory only.
D. Each Web.config file applies configuration settings to its own directory and all parent
directories above it.
Correct Answer: B
QUESTION 12
A Web page includes the JavaScript code shown in the exhibit. What will be output to the browser
when the Web page executes?
A. 1empty23
B. 1undefined23
C. 1null23
D. 123
Correct Answer: B
QUESTION 13
Which configuration setting grants access only to the Webadmin user and denies access to all other
users?
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
A. <authorization>
<allow users="Webadmin" />
<deny users="?" />
</authorization>
B. <authorization>
<deny users="?" />
<allow users="Webadmin" />
</authorization>
C. <authorization>
<deny users="*" />
<allow users="Webadmin" />
</authorization>
D. <authorization>
<allow users="Webadmin" />
<deny users="*" />
</authorization>
Correct Answer: D
QUESTION 14
Which markup would you add to the Web.config file to prevent users who have not been
authenticated from accessing any page except the login page?
A. <authorization>
<deny users="*">
</authorization>
B. <authentication>
<deny users="*">
</authentication>
C. <authorization>
<deny users="?">
</authorization>
D. <authentication>
<deny users="?">
</authentication>
Correct Answer: C
QUESTION 15
Which approach to state management allows you to store information that can be maintained for
all users of an application in such a way that it will never expire?
A. Cookies
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
B. Session State
C. Application State
D. Caching
Correct Answer: C
QUESTION 16
The error in the XML code shown in the exhibit is:
A. XML tag names cannot begin with a number.
B. XML tag names must be lowercase.
C. parent elements cannot contain attributes.
D. numbers are not allowed in XML tag names.
Correct Answer: A
QUESTION 17
In which event handler should you set the theme for a Web site?
A. Page_PreInit
B. Page_PreRender
C. Page_Load
D. Page_PreLoad
Correct Answer: A
QUESTION 18
What is the error in the XML code shown in the exhibit?
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
A. XML tag names cannot contain uppercase characters.
B. The solution tags do not match.
C. XML tag names cannot contain numbers.
D. The date attribute value should not be in quotation marks.
Correct Answer: B
QUESTION 19
What is the correct Cascading Style Sheet (CSS) syntax for inserting a comment?
A. /* Comment here */
B. // Comment here
C. /* Comment here
D. ' Comment here
Correct Answer: A
QUESTION 20
Which of the following files will you use to identify system specific information to reduce future
compilation changes to the application? (Each correct answer presents a complete solution.
Choose two.)
A. Web.config
B. Trace.axd
C. Global.asax
D. Machine.config
Correct Answer: AD
QUESTION 21
You have an external style sheet that includes the following style:
div
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
{
color: Gray;
}
You create an .aspx page that includes the following element:
<div style="color:Aqua; text-decoration:underline"> Hello World </div>
How will the text "Hello World" be displayed when the user browses the page?
A. Gray and underlined
B. Aqua and underlined
C. Aqua and not underlined
D. Gray and not underlined
Correct Answer: B
QUESTION 22
When using the Visual Studio debugger, a breakpoint:
A. makes the program pause after each line.
B. closes the browser and ends the session.
C. is the point at which the code stops executing and throws an exception.
D. pauses the execution of the code.
Correct Answer: D
QUESTION 23
Which of these is a requirement of XML?
A. XML tag names must be all lowercase.
B. XML tag names must be all uppercase.
C. XML tags must not contain any spaces.
D. XML elements must be properly nested.
Correct Answer: D
QUESTION 24
Which property of the SqlDataSource control holds either a SQL query or the name of a stored
procedure that the SqlDataSource control uses to retrieve data?
A. ConnectionString
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
B. DetailsView
C. SelectCommand
D. SelectParameters
Correct Answer: C
QUESTION 25
What are two ways to ensure that the time limit required to establish the connection is not
exceeded? (Each correct answer presents a complete solution. Choose two.)
A. Set the ConnectionTimeout property of the SqlConnection object.
B. Use a DataSet instead of a SqlDataReader.
C. Place all statements that use the connection within a using block.
D. Call the Close method on the SqlConnection object.
E. Store the connection string in the Web.config file.
Correct Answer: CD
QUESTION 26
Your application contains the business class shown in the exhibit. You want to bind the Species
collection to an <asp:Repeater> control. What control should you use as the data source?
A. AccessDataSource
B. LinqDataSource
C. SqlDataSource
D. XmlDataSource
Correct Answer: B
QUESTION 27
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
An IIS worker process:
A. is created for each ASP.NET page request.
B. is created for each ASP.NET session.
C. runs under the NetworkService security context by default.
D. runs under the LocalSystem security context by default.
Correct Answer: C
QUESTION 28
You are configuring a Web Application that connects to a SQL Server database. Which types of
authentication are supported by SQL Server Mixed Mode? (Each correct answer presents part of
the solution. Choose two.)
A. SQL Server Authentication
B. Windows Authentication
C. Passport Authentication
D. Forms Authentication
Correct Answer: AB
QUESTION 29
You write a JavaScript function named setCurrent() that changes the color of an <input type="text"
/> element. You need to configure an <input type="text" /> element to call setCurrent when the
user clicks in or tabs to the field. What property should you set?
A. onclick
B. onselect
C. onfocus
D. onblur
Correct Answer: C
QUESTION 30
What is a Web garden?
A. A worker process that belongs to multiple application pools
B. An application pool that is associated with multiple Web applications
C. A Web application that is associated with multiple application pools
D. An application pool that has multiple worker processes
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
Correct Answer: D
QUESTION 31
A Web page includes the <asp:UpdatePanel> control. Which other control must you add to the
form?
A. <asp:ScriptManagerProxy>
B. <asp:Timer>
C. <asp:ScriptManager>
D. <asp:UpdateProgress>
Correct Answer: C
QUESTION 32
Which validation control should you use to verify a Personal Identification Number (PIN) against a
column value stored in a record in a database?
A. RegularExpressionValidator
B. CompareValidator
C. CustomValidator
D. RangeValidator
Correct Answer: C
QUESTION 33
What can you use to configure custom error pages for a Web application?
A. An ErrorProvider control
B. A CustomValidator control
C. A Cascading Style Sheet
D. A Web.config file
Correct Answer: D
QUESTION 34
Which state management technique uses a hidden field to store user data between postbacks of
the same page?
A. Session state
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
B. Application state
C. Cookies
D. View state
Correct Answer: D
QUESTION 35
A Web page has 10 controls. You need to use Ajax to refresh the data in 5 of the controls when a
button is clicked. Which control should you use as a container for the controls that need their data
refreshed?
A. UpdatePanel
B. StatusStrip
C. Panel
D. UpdateProgress
Correct Answer: A
QUESTION 36
You add an <asp:ScriptReference> element:
A. to register a .js script file so that it can be executed as server-side code.
B. to register a .vbs file so that it can be executed as server-side code.
C. to register a .vbs file so that it can be used for partial page updates.
D. to register a .js script file so that it can be used for partial page updates.
Correct Answer: D
QUESTION 37
Which option provides server-based state management?
A. Hidden fields
B. View state
C. Session state
D. Control state
Correct Answer: C
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
QUESTION 38
When you create an XML Web service to be consumed by a Web site, which step is optional?
A. Create an .asmx file and declare a Web service in it using the @ WebService directive.
B. Define the Web service methods that compose the functionality of the Web service.
C. Apply the WebService attribute to the class implementing the Web service.
D. Create a class that implements the Web service.
Correct Answer: C
QUESTION 39
Users trying to access a page in a Web site are getting an HTTP Error 404 message. Which is the
most likely reason?
A. The server could not understand the syntax of the request.
B. The request to the server was forbidden.
C. The URL was entered incorrectly.
D. The server was overloaded.
Correct Answer: C
QUESTION 40
The Step Into debugging option:
A. executes all statements in the function called from the current line of code.
B. stops executing the program at a specific line of code.
C. stops executing at the first line of code inside the function called from the current line of code.
D. cannot be used to debug an ASP.NET application.
Correct Answer: C
QUESTION 41
You want to add a special announcement to your Web site. You have added a page named
announcement.aspx. The announcement should be displayed at the top of the home page. The
rest of the home page should be displayed as usual. Which option should you use?
A. Server.Transfer
B. Server.Execute
C. Response.Redirect
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
D. Meta Refresh
Correct Answer: B
QUESTION 42
You need to use source code written in more than one language in a Web application. What should
you do?
A. Place the files in the root of the App_Code directory.
B. Place the code in subdirectories of the App_Code directory and specify the names of the
subdirectories in the compilers section of the Web.config file.
C. Place the files in the root of the Bin directory.
D. Place the code in subdirectories of the App_Code directory and specify the names of the
subdirectories in the compilation section of the Web.config file.
Correct Answer: D
QUESTION 43
You set the ErrorPage property of a page named Default.aspx to "showErrorInfo.aspx". When will
showErrorInfo.aspx be executed?
A. When the code-behind file for the Default.aspx page cannot be found
B. When handled exceptions occur while executing the Default.aspx page
C. When an unhandled exception occurs while executing the Default.aspx page
D. When handled or unhandled exceptions occur while executing the Default.aspx page
Correct Answer: C
QUESTION 44
You should use a DataReader object to retrieve data when:
A. you need to access a row of data more than once.
B. you need to manipulate data from multiple sources, such as a database and an XML file.
C. you need to perform a large amount of processing per row.
D. you do not need to cache the data.
Correct Answer: D
QUESTION 45
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
Which approach to applying style elements to your Web page takes the lowest precedence?
A. User styles applied by the readers themselves
B. Inline style
C. External style sheets
D. Internal style sheets
Correct Answer: C
QUESTION 46
A Web page contains the script shown in the exhibit. What will be written to the window when
browser executes the page?
A. 166
B. 161
C. 116
D. 111
Correct Answer: A
QUESTION 47
Which object can you use to determine whether the browser used to connect to a Web application
supports cookies?
A. Response
B. Request
C. Application
D. Session
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
Correct Answer: B
QUESTION 48
You need to use an external style sheet named bcdstyles.css to define the user interface for an
ASP.NET Web site. What should you do?
A. Add a <style> element to the <head> element of the master page.
B. Add a <style> element to the Web.config file.
C. Add a <link> element to the Web.config file.
D. Add a <link> element to the <head> element of the master page.
Correct Answer: D
QUESTION 49
A user control:
A. can contain controls and HTML markup.
B. cannot include server-side code.
C. does not have properties or methods.
D. is a class that inherits from WebControl.
Correct Answer: A
QUESTION 50
Your application must issue several commands on a connection. The commands must either all fail
or all succeed. You write code in the try block to execute the commands within a SqlTransaction
object referenced by tran. Which statement should you add to the catch block?
A. tran.ResetStatistics();
B. tran.Undo();
C. tran.Rollback();
D. tran.Commit();
Correct Answer: C
QUESTION 51
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
You use a DataReader to:
A. retrieve an updateable result set.
B. cache data for use after the Connection object is closed.
C. reduce the load on the database server.
D. retrieve a read-only, forward-only result set.
Correct Answer: D
QUESTION 52
When using the Copy Web Site tool:
A. source code files are precompiled if they are in the App_Code directory, and then copied.
B. all source code file are copied and then compiled.
C. all source code files are copied and later compiled upon request.
D. all source code files are precompiled and then copied.
Correct Answer: C
QUESTION 53
An AJAX page contains several <asp:Bbutton> controls that trigger partial-page updates in an
UpdatePanel control. You click the buttons and several updates occur. What is the result after the
partial-page updates?
A. The page reloads with all updates visible when you click the Back button.
B. The original page reloads without any of the updates when you click the Back button.
C. The Back button is inactive.
D. All updates except the most recent one are still visible if you click the Back button.
Correct Answer: C
QUESTION 54
You want to use the Publish Web Site tool in Visual Studio 2010 to deploy a Web site on a remote
server that does not support FTP, but it does support FrontPage Server Extensions.
Which option should you select in the Publish Web Site dialog box?
A. Local IIS
B. FTP Site
C. Remote Site
D. File System
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
Correct Answer: C
QUESTION 55
Which type of control is the most difficult to create?
A. A CompareValidator control
B. A server control
C. A RangeValidator control
D. A user control
Correct Answer: B
QUESTION 56
In which folder should you place a file that is used to create a reference to a Web service?
A. App_WebReferences
B. App_LocalResources
C. App_Data
D. Bin
Correct Answer: A
QUESTION 57
Which ASP.NET DataSource control would you use to connect to an Oracle database?
A. AccessDataSource
B. OracleDataSource
C. SqlDataSource
D. ObjectDataSource
Correct Answer: C
QUESTION 58
Which GridView control event can you use to prevent data in the data source from being modified
if the new data contains invalid values?
A. RowUpdating
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
B. RowEdited
C. RowDataBound
D. RowEditing
Correct Answer: A
QUESTION 59
Your Web site includes a number of hyperlinks. You want each hyperlink to display with a silver
background when the user's mouse rests over it. Which Cascading Style Sheet (CSS) style rule
should you define?
A. link.hover {background-color:silver;}
B. a.mouseover {background-color=silver;}
C. link:mouseover {background-color=silver;}
D. a:hover {background-color:silver;}
Correct Answer: D
QUESTION 60
Settings defined in the Machine.config file:
A. apply to Windows applications, but not ASP.NET applications.
B. apply to ASP.NET applications, but not Windows applications.
C. are overridden by settings defined in an application's Web.config file.
D. take precedence over the settings defined in an application's Web.config file.
Correct Answer: C
QUESTION 61
You create a project that includes a file named promos.asmx. You write the class shown in the
exhibit. You need to ensure that client applications can call the GetTodaysDeals function by passing
a query string to promos.asmx. What should you do?
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
A. Modify the class to inherit WebService and change the method's return type to Xml.
B. Decorate the method with the WebMethod attribute.
C. Decorate the method with the WebService attribute.
D. Change the method's return type to Xml.
Correct Answer: B
QUESTION 62
You are developing an intranet application. The application requires users to log on, and you need
to store the user's identity in a session variable. The approach you take should require the least
amount of time and resources. Which session state mode should you use?
A. Custom
B. StateServer
C. InProc
D. SQLServer
Correct Answer: C
QUESTION 63
Which statement about client-side scripting languages is true?
A. Client-side scripting languages cannot be used to validate user input before submitting a page
to the server.
B. Client-side scripting languages can access a database on the server.
C. The browser understands only HTML and client-side scripting languages.
D. VBScript, JavaScript, and C# are all examples of client-side scripting languages.
Correct Answer: C
QUESTION 64
You need to use a DataSet object to retrieve data when you need to:
A. access data in a forward-only and read-only manner.
B. access each row of data only data once.
C. manipulate data from multiple sources, such as a database and an XML file.
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
D. process a result set that is too large to fit into memory.
Correct Answer: C
QUESTION 65
A Web application has a page that includes the code shown in the exhibit. What will happen when
this page executes?
A. An exception will occur because a function cannot be called with the <head> block.
B. The function will be executed by the client browser.
C. An exception will occur because a JavaScript function cannot be defined in the <head> block.
D. The function will be executed by the Web server.
Correct Answer: B
QUESTION 66
Your ASP.NET application includes the following code in the ListBox1_SelectedIndexChanged event:
ShowFields(ListBox1.SelectedValue);
The ShowFields method displays fields on the page, based on the value the user selects in ListBox1.
When you test the code, no fields are displayed on the page. What is the most likely reason?
A. You need to move the code to the Page_Load event procedure.
B. You need to set the AutoEventWireup attribute in the @ Page directive to true.
C. You need to move the code to the Page_PreInit event procedure.
D. You need to set the AutoPostBack property for ListBox1 to true.
Correct Answer: D
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
QUESTION 67
Which DataSource control can be used to bind a GridView control to an ADO.NET DataReader?
A. ObjectDataSource
B. EntityDataSource
C. XmlDataSource
D. SqlDataSource
Correct Answer: D
QUESTION 68
Your Web site uses a code file that defines business objects. One of the business objects
implemented is likely to change. You need to ensure that the code file defining the business objects
is automatically recompiled the first time it is used after being modified. Where should you store
the file?
A. Global assembly cache (GAC)
B. App_GlobalResources folder
C. bin folder
D. App_Code folder
Correct Answer: D
QUESTION 69
You are creating a custom control that will be used on ASP.NET Web pages. The control allows the
user to select a style from a drop-down list. You need to ensure that the style the user selects is
preserved between postbacks. The page developer must not be able to disable this functionality.
Which state management mechanism should you use to store the selected style?
A. Control state
B. Application state
C. View state
D. Session state
Correct Answer: A
QUESTION 70
You add a ListBox control and a GridView control to a form and bind each to a different
SqlDataSource control. The GridView control should display a result set filtered by the value
selected in the ListBox control. What type of parameter should you define for the WHERE clause of
the data source bound to the GridView control?
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
A. QueryStringParameter
B. ControlParameter
C. FormParameter
D. CookieParameter
Correct Answer: B
QUESTION 71
You are creating a Web application. The application accesses files that are protected using NTFS
permissions. Only users who are granted the necessary file permissions should be allowed to access
them. You need to configure authentication for the Web application. Which markup should you
use?
A. <system.web>
<authentication mode="Windows"/>
<identity impersonate="false"/>
</system.web>
B. <system.web>
<authentication mode="Forms"/>
<identity impersonate="true"/>
</system.web>
C. <system.web>
<authentication mode="Windows"/>
<identity impersonate="true"/>
</system.web>
D. <system.web>
<authentication mode="Forms"/>
<identity impersonate="false"/>
</system.web>
Correct Answer: C
QUESTION 72
You have designed a Web site that uses an application variable as a hit counter to record the
number of visitors to the site. You need to make sure that only one user can increment the hit
counter at a time. What should you do?
A. Lock the Application object, increment the hit counter, and then clear the Application object.
B. Clear the Application object and then increment the hit counter.
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
C. Unlock the Application object, increment the hit counter, and then lock the Application object.
D. Lock the Application object, increment the hit counter, and then unlock the Application object.
Correct Answer: D
QUESTION 73
One purpose of IIS application pools is to:
A. group together Web applications that have hyperlinks to each other.
B. prevent memory leaks.
C. prevent an unstable Web application from affecting other Web applications.
D. link Web applications that have related functionality.
Correct Answer: C
QUESTION 74
You store a setting in the <appSettings> section of the Web.config file. You need to retrieve the
value of the setting in a server-side event procedure. Which object should you use?
A. ConfigurationManager
B. Application
C. Server
D. FileSystem
Correct Answer: A
QUESTION 75
The Cache property of the HttpContext object stores data that:
A. can only be accessed by code in the Global.asax file.
B. is shared only between requests within the same session.
C. is shared only between sessions initiated by a specific user.
D. is shared between all sessions of an application.
Correct Answer: D
QUESTION 76
Which HTTP error code is associated with an internal server error?
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
A. HTTP Error 500
B. HTTP Error 400
C. HTTP Error 503
D. HTTP Error 404
Correct Answer: A
QUESTION 77
You are creating an ASP.NET application. You are writing an event procedure that retrieves data
from an external database. The event procedure must iterate through the retrieved data and
modify records that meet certain conditions. You need to select the objects you will use. What
should you use?
A. Command and DataSet
B. DataSet and DataReader
C. DataAdapter and DataSet
D. DataAdapter and DataReader
Correct Answer: C
QUESTION 78
You want to bind the Text property of a label on a Web page to a value in a database from a field
named SuggestionDate. The value does not need to be updatable. The approach you use should
make the most efficient use of server resources. Which syntax should you use?
A. Text='<%# Eval("SuggestionDate") %>'
B. Text='<%= Bind("SuggestionDate") %>'
C. Text='<%= Eval("SuggestionDate") %>'
D. Text='<%# Bind("SuggestionDate") %>'
Correct Answer: A
QUESTION 79
You need to ensure that only one radio button can be selected in a group. What should you do?
A. Set the ValidationGroup property of the RadioButton controls to the same value.
B. Set the GroupName property of the RadioButton controls to the same value.
C. Set the Text property of the RadioButton controls to the same value.
D. Set the Checked property of the RadioButton controls to the same value.
Correct Answer: B
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
QUESTION 80
Which two controls allow users to select one or more options from a list of options? (Each correct
answer presents a complete solution. Choose two.)
A. <asp:BulletedList>
B. <asp:ListBox>
C. <asp:RadioButtonList>
D. <asp:DropDownList>
E. <asp:CheckBoxList>
Correct Answer: BE
QUESTION 81
User input should always be validated by an ASP.NET validation control or server-side processing
because:
A. JavaScript can be turned off by the client, rendering client-side validation ineffective.
B. Server-side processing is the preferred method of validating user input.
C. Client-side scripting languages are generally ineffective.
D. Client-side validation requires more resources than server-side validation.
Correct Answer: A
QUESTION 82
You need to ensure that the date typed in the <asp:TextBox> control named txtEnd is later than the
date typed in the <asp:TextBox> control named txtStart. Which built-in control should you use?
A. RegularExpressionValidator
B. DateValidator
C. CompareValidator
D. RangeValidator
Correct Answer: C
QUESTION 83
Which is the correct query string syntax for passing the values red for color1, yellow for color2, and
blue for color3?
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
A. ?color1=red;color2=yellow;color3=blue;
B. ?color1=red&color2=yellow&color3=blue
C. ?color1=red&color2=yellow&color3=blue;
D. ?color1:red;color2:yellow;color3:blue
Correct Answer: B
QUESTION 84
You call the following AJAX function when an <asp:Button> control is clicked:
function HelloWorld() {
document.body.insertAdjacentHTML('beforeEnd', 'Hello World! '); }
Which property should you specify for the button to ensure that the HelloWorld function is
executed when the button is clicked?
A. OnClientClick="HelloWorld"
B. OnClientClick="Hello World()"
C. OnClick="HelloWorld()"
D. OnClientClick="HelloWorld()"
Correct Answer: D
QUESTION 85
A Web site has a page that must be translated to different languages. The translated text should
only be accessible by that page. Where should you store the files that contain the translated text?
A. App_GlobalResources folder
B. App_Code folder
C. App_Data folder
D. App_LocalResources folder
E. App_WebReferences folder
Correct Answer: D
QUESTION 86
In which folder of an ASP.NET Web application should you place compiled assemblies that you want
to reference in the application?
A. The App_LocalResources folder
B. The Bin folder
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
C. The App_Code folder
D. The App_Data folder
Correct Answer: B
QUESTION 87
You are creating a Web application that connects to an external database. When developing the
application, the database will be located on the development computer. After the application is
deployed, the database will be located on a different server. You need to ensure that the
connection string can be changed without recompiling the application. Where should you store the
connection string?
A. Global.asax
B. Machine.config
C. Web.config
D. MasterPage.master
Correct Answer: C
QUESTION 88
You are planning to use an ObjectDataSource control to bind a GridView to a collection. You need
to enable the user to limit the results displayed to those that have a Salary property value within a
specific range. Which property should you set?
A. Where
B. SelectMethod
C. SelectCommand
D. FilterExpression
Correct Answer: D
QUESTION 89
The RegisterAsyncPostBackControl method of the <asp:ScriptManager> control:
A. is used to register controls that are in a parent <asp:UpdatePanel> container for asynchronous
postback.
B. can only be called if the ChildrenAsTriggers property of the <asp:UpdatePanel> is set to true.
C. is used to register controls that are in a child <asp:UpdatePanel> container for asynchronous
postback.
D. is used to register controls that are not in an <asp:UpdatePanel> container for asynchronous
postback.
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
Correct Answer: D
QUESTION 90
Which two of the following are JavaScript comments? (Each correct answer presents part of the
solution. Choose two.)
A. //This is a comment
B. /* This is a comment */
C. // This is a comment //
D. 'This is a comment
E. <!-- This is a comment -->
Correct Answer: AB
QUESTION 91
What does Windows Communication Foundation (WCF) use to describe the data that can be
exchanged between a WCF client and a WCF service?
A. The Web.config file
B. A DataSource Control
C. A data contract
D. The Publish Web Site tool
Correct Answer: C
QUESTION 92
Which object can be populated by calling the Fill method of a DataAdapter?
A. DataSet
B. SqlDataSource
C. DataReader
D. LinqDataSource
Correct Answer: A
QUESTION 93
Which method should you use to prevent pending changes from being committed to a database
for a database transaction that is already in progress?
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
A. The Rollback method of the Transaction object
B. The BeginTransaction method of the Connection object
C. The Commit method of the Transaction object
D. The Kill method of the Process object
Correct Answer: A
QUESTION 94
You are developing a Web page in which you have two UpdatePanel controls. When a user makes
a selection from a DropDownList control in the first UpdatePanel control, you want the information
in the second UpdatePanel control to be updated. Which setting is necessary to trigger the update
in the second UpdatePanel control?
A. The AutoPostBack property must be set to True on the DropDownList control in the first
UpdatePanel control.
B. The ChildrenAsTriggers property must be set to True on the first UpdatePanel control.
C. The ChildrenAsTriggers property must be set to True on the second UpdatePanel control.
D. The AutoPostBack property must be set to True on the first UpdatePanel control.
Correct Answer: A
QUESTION 95
A Web application project:
A. is compiled in full the first time a page is accessed.
B. must be compiled before it is published to the Web server.
C. does not compile a page unless it is accessed.
D. must be manually compiled after the files have been published to the Web server.
Correct Answer: B
QUESTION 96
Connection pooling:
A. allows you to reuse available connections for data requests.
B. always allows an infinite number of connections to a database.
C. allows multiple users to use the same connection at the same time.
D. can impede the performance of a Web application and should be avoided at all costs.
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
Correct Answer: A
QUESTION 97
You are creating an ASP.NET application. You add an <asp:Button> control to a page. When the user
clicks the button, the following should occur:
Execution of the current page should end.
The newStory.aspx page should start executing in the user's browser.
You need to write the most efficient code to implement the functionality. Which code should you
use?
A. Server.Transfer("newStory.aspx");
B. Response.Redirect("newStory.aspx");
C. Server.TransferRequest("newStory.aspx");
D. Response.Redirect("newStory.aspx", true);
Correct Answer: A
QUESTION 98
You are creating a Web application. You need to ensure that errors with the HTML status code 500
display a Web page named 500error.aspx. What should you do?
A. Set the ErrorPage property of the Master page.
B. Add an <error> element inside the <customErrors> element in the Web.config file.
C. Define the 500 attribute of the <customErrors> element in the Web.config file.
D. Add a <listener> element inside the <trace> element in the Web.config file.
Correct Answer: B
QUESTION 99
You need to enable tracing for an individual page in a Web application. What should you do?
A. Include an @ Page directive at the top of the .aspx file that includes a Trace attribute with its
value set to false.
B. Include an @ Page directive at the top of the .aspx file that includes a Trace attribute with its
value set to Page.
C. Include an @ Page directive at the top of the .aspx file that includes a Trace attribute with its
value set to LocalOnly.
D. Include an @ Page directive at the top of the .aspx file that includes a Trace attribute with its
value set to true.
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
Correct Answer: D
QUESTION 100
Which tool precompiles and copies a Web site to a Web server?
A. Copy Web Site
B. Publish Web Site
C. FTP Web Site project
D. Setup project
Correct Answer: B
QUESTION 101
You want to bind an input field on a Web form to a value in a database field named LastName. You
want the user to be able to update the field in case his or her name is misspelled. Which syntax
should you use?
A. <%= Bind("LastName") %>
B. <%# Eval("LastName") %>
C. <%# Bind("LastName") %>
D. <%# Bind("LastName") %>
Correct Answer: C
QUESTION 102
Connections can only share a connection in the connection pool if:
A. they are established within the same session.
B. they are established within the same using block.
C. they issue the same SELECT query.
D. they use an identical connection string.
Correct Answer: D
QUESTION 103
Which event occurs after view state has been loaded, but before any control events?
A. Page_Load()
B. Page_SaveStateComplete()
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
C. Page_PreInit()
D. Page_PreRender()
Correct Answer: A
QUESTION 104
Which object should you use to stop the execution of the code in a Web page?
A. Application object
B. Server object
C. Request object
D. Response object
Correct Answer: D
QUESTION 105
You are adding a Web page to an application that will enable users to change their password. You
need to display a message about password requirements when the page loads initially. When the
user submits the form, you want to display a message indicating whether or not the password was
successfully changed. You need to determine whether the page has been sent to the server. Which
property should you test for?
A. Page.IsPostBack
B. Page.IsCallback
C. Page.PreviousPage
D. Page.IsCrossPagePostBack
Correct Answer: A
QUESTION 106
Your application includes the following XML document:
<? xml version="1.0" ?>
<Customers>
<Customer type="Preferred">Bill Smith</Customer>
<Customer type="Standard">Tony Ward</Customer>
</customers>
Which statement describes the XML?
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
A. The XML is invalid because the end tag for the <Customers> element does not match the start
tag.
B. The XML is invalid because the <Customers> element can only contain a single <Customer>
element.
C. The XML is invalid because the values "Bill Smith" and "Tony Ward" contain spaces.
D. The XML is valid and well-formed.
Correct Answer: A
QUESTION 107
If AutoEventWireup is set to true, then:
A. your page will throw an exception.
B. it changes which lifecycle stages are executed during a postback.
C. you are NOT required to explicitly bind event handlers to a page event.
D. you are required to explicitly bind event handlers to a page event.
Correct Answer: C
QUESTION 108
You need to enable tracing for a Web application. The trace information should be visible at the
bottom of all of the application's Web pages when you access them from the server, but it should
not be visible to users who connect to the site from another computer. Which element should you
add to the <system.web> element of the Web.config file?
A. <trace enabled="true" localOnly="true" pageOutput="false" />
B. <trace enabled="true" localOnly="false" pageOutput="true" />
C. <trace enabled="true" localOnly="true" pageOutput="true" />
D. <trace enabled="false" localOnly="true" pageOutput="true" />
Correct Answer: C
QUESTION 109
Which statement about accessing Request.QueryString without specifying an index is true?
A. If a specified variable is not assigned a value, an empty collection is returned.
B. If a specified variable has multiple values, an exception is thrown.
C. If a specified variable is not assigned a value, an exception is thrown.
D. If a specified variable has multiple values, only the first value for the specified variable is
returned.
Ensurepass.com Easy Test! Easy Pass!
Download the complete collection of Exam's Real Q&As www.ensurepass.com
Correct Answer: A
QUESTION 110
Your Web application displays data from an Oracle database in a GridView control. You want to
allow users to update the data displayed in the GridView control. Which of the following should
you use? (Each correct answer presents part of the solution. Choose two.)
A. An XmlDataSource control
B. A SqlDataSource Control
C. The Bind method
D. The Eval method
Correct Answer: BC
QUESTION 111
A Web application's Web.config file includes the following element:
<configuration>
<system.web>
<trace enabled="true" localOnly="false" />
</system.web>
</configuration>
What will happen when the application executes?
A. The application will stop executing when a breakpoint is encountered.
B. Diagnostic information will only display when the application is executed on the server that
hosts it.
C. The application will store each page visited in both session state and browser history.
D. Diagnostic information will display when the application is executed from any Web browser.
Correct Answer: D
QUESTION 112
You deploy a Web site that includes multiple pages. The application uses a business class defined
in a code file. You modify the business class and perform an in-place precompilation. Which files
are recompiled?
Ensurepass.com Members Features:
1. Verified Answers researched by industry experts.
2. Q&As are downloadable in PDF and VCE format.
3. 98% success Guarantee and Money Back Guarantee.
4. Free updates for 180 Days.
View list of All Exam provided:
http://www.ensurepass.com/certfications?index=A
To purchase Lifetime Full Access Membership click here:
http://www.ensurepass.com/user/register
Valid Discount Code for 2014: SFOH-FZA0-7Q2S
To purchase the HOT Microsoft Exams:
Microsoft
70-243 70-347 70-466 70-515
70-246 70-410 70-467 70-516
70-247 70-411 70-480 70-519
70-321 70-412 70-481 70-583
70-331 70-413 70-484 70-640
70-332 70-414 70-485 70-649
70-336 70-417 70-486 70-668
70-337 70-461 70-487 70-680
70-341 70-462 70-488 70-687
70-342 70-463 70-489 70-688
70-346 70-464 70-513 70-689