PrepAway - Latest Free Exam Questions & Answers

Category: 70-553

Exam 70-553: UPGRADE: MCSD Microsoft .NET Skills to MCPD Enterprise Application Developer by Using the Microsoft .NET Framework: Part 1

Which code segment should you use?

You have an SQL query that takes one minute to execute. You use the following code segment to execute the SQL query asynchronously.

Dim ar As IAsyncResult = cmd.BeginExecuteReader()

You need to execute a method named DoWork() that takes one second to run while the SQL query is executing. DoWork() must run as many times as possible while the SQL query is executing. Which code segment should you use?

Which two actions should you perform?

You are creating a custom user control. The custom user control will be used on 10 Web Forms for an ASP.NET Web site that allows users to register and log on to a personalized experience. The custom user control uses two TextBox controls and two Button controls. You need to ensure that the controls are visible only when users are not logged on to the Web site. You also need to minimize the amount of effort in development and maintenance for the Web site. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

What should you do?

You create a Web site that you must copy from a development server to a testing server, along with all source files. You do not have terminal access to the testing server. You need to create the virtual directory. Then you must copy the Web site to the virtual directory on the testing server without precompiling the site. What should you do?

Which code segment should you use?

You create the following Web user control named ErrorMessages.

<%@ Control Language=”VB” AutoEventWireup=”false”
CodeFile=”ErrorMessages.ascx.vb” Inherits=”ErrorMessages” %> <script>
Protected m_Text As String = “This is a default message!”

Public Property Text() As String
Get
Return m_Text
End Get
Set(ByVal value As String)
m_Text = value
End Set
End Property
</script>

The ErrorMessages control uses a public property that displays the error message. You need to change the default error message property on the Web Form in which the control is implemented. Which code segment should you use?


Page 1 of 1012345...10...Last »