Exam 70-562 : Microsoft .NET Framework 3.5, ASP.NET Application Development – 5

Question: You work as an application developer at Company.com. You are in the process of creating an ASP.NET application using .NET Framework 3.5. Your application contains a Web Page with a DataSourceControl. This control is named KingProducts. This control is bound to a Microsoft SQL Server 2005 table. The primary key of this table is the SKU column. In the FormView control you write the following code. (The line numbers is included for reference purposes)
1 <tr>
2 <td align=”right”><strong>Products:</strong></td>
3 <td><asp:DropDownList ID=”DropDownList1″ Runat=”server”
4
5 DataSourceID=”ds1″ DataTextField=”SKU” DataValueField=”ProdID” />
9 </td>
10 </tr>
You receive an instruction from management to make sure that modifications made to the ProdID field can be written to the database. You thus need to determine the appropriate code fragment that needs to be added at line 4.
What should you identify?

  1. Your best option would be to add SelectedValue='<%# Eval(“ProdID”) %>’
  2. Your best option would be to add SelectedValue='<%# Eval(“SKU”) %>’
  3. Your best option would be to add SelectedValue='<%# Bind(“ProdID”) %>’
  4. Your best option would be to add SelectedValue='<%# Bind(“SKU”) %>’

Correct Answer: 3


Question: You work as an application developer at Company.com. You manage an ASP.NET application that was created in Microsoft .NET Framework 3.5. The application is hosted no a Web server named Company-SR04 and make use of Session objects. You receive notification that the application should be configured to run on a Web form. You thus have to reconfigure the application. To ensure productivity of the Company.com users you need to make sure that the application is able to access the Session objects of all servers in the Web farm. You need to make sure that the Session objects are not lost when a server encounters problems.
What should you do?

  1. This can be achieved by ensuring that the SQLServer Session Management mode is used to keep session information in an individual database for every Web server in the Web farm.
  2. This can be achieved by ensuring that the StateServer Session Management mode is used to keep session information in a common State Server process on a Web server in the Web farm.
  3. This can be achieved by ensuring that the InProc Session Management mode is used to keep session information in the ASP.NET worker process.
  4. This can be achieved by ensuring that the SQLServer Session Management mode is used to keep session information in a common Microsoft SQL Server 2005 database.

Correct Answer: 4


Question: You work as a Web Developer at Company.com. Company.com makes use of Microsoft ASP.NET 3.5. You create a Web application that you want to build and deploy to a remote server using of Microsoft Visual Studio 2008. You make use of Virtual Private Networking (VPN) in order to connect to Company.com’s remote server. You have access to the folder where you need to deploy the application. You notice that Front Page Server Extensions is not installed on the remote server. You need to ensure that your solution stops access to source code files that is used by the application. What should you do?

  1. You should make use of the Copy Web Site tool and select the File System option.
  2. You should make use of the Publish Web Site tool and select the Remote Site option.
  3. You should make use of the Publish Web Site tool and select the File System option.
  4. You should make use of the Copy Web Site tool and select the Remote Site option.

Correct Answer: 3


Question: You work as an application developer at Company.com. You make use of .NET Framework 3.5 to create an ASP.NET application. You are in the process of creating a Web page named Input.aspx which contains a TextBox control named tbInput. The newly created Web page posts across to another page named Process.aspx. The Process.aspx page includes a Label control named lbl1. You have to make sure that the text entered in tbInput is displayed in lbl1. You need to determine the appropriate code that should be used.
What should you do?

  1. To accomplish this you need to use:
    Dim tbNew As TextBox = _TryCast(FindControl(“tbInput”), tbNew) lbl1.Text = tbInput.Text
  2. To accomplish this you need to use:
    Dim tbNew As TextBox = _TryCast(PreviousPage.FindControl(“tbInput”), tbNew) lbl1.Text =
    tbInput.Text
  3. To accomplish this you need to use:
    Dim tbNew As TextBox = _TryCast(Parent.FindControl(“tbInput”), tbNew) lbl1.Text = tbInput.Text
  4. To accomplish this you need to use:
    lbl1.Text = Request.QueryString(“tbInput”)

Correct Answer: 2


Question: You work as a Web Developer at Company.com. Company.com makes use of Microsoft ASP.NET 3.5. You use this application to create a Web application. The application is hosted in Microsoft Internet Information Services (IIS) 6.0 that is configured with the default configuration. The application is accessing its information from a Microsoft SQL Server 2008 database. A custom domain account to the application for accessing the database is granted by the database administrator. The Web.config file of the application contains the following configuration:

<authentication mode="Forms"/>
<identity impersonate="false"/>

You need to make sure that you are able to access the database successfully. You decide to configure the application. What should you do?

  1. You should change the isolation mode in IIS.
  2. You should change the identity linked with the application pool of the application.
  3. You should change the authentication configuration in the Web.config file to: <authentication mode=”Windows”/>
  4. You should change the identity configuration in the Web.config file to <identity impersonate=”true”/>

Correct Answer: 2

Tagged . Bookmark the permalink.

Leave a Reply