
Microsoft TS: Microsoft .NET Framework 2.0 - Web-based Client Development - 070-528 Exam Questions
QUESTION NO: 1
You are developing an application that connects to a Microsoft SQL Server database using the
SqlConnection object.
Your connection objects are being pooled. As the pool fills up, connection requests are queued. Some
connection requests are rejected.
You need to ensure that the application releases connections back to the pool as soon as possible.
Also, you need to decrease the likelihood that connection requests will be rejected.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose
three.)
You are developing an application that connects to a Microsoft SQL Server database using the
SqlConnection object.
Your connection objects are being pooled. As the pool fills up, connection requests are queued. Some
connection requests are rejected.
You need to ensure that the application releases connections back to the pool as soon as possible.
Also, you need to decrease the likelihood that connection requests will be rejected.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose
three.)
Correct Answer: A,C,F
QUESTION NO: 2
You create a large, n-tier Web application that has a custom event tracking system.
You need to create a custom event type that enables your event tracking system to record all relevant
event details for all types of events.
The events must be stored in Microsoft SQL Server.
From which base type should your custom event type inherit?
You create a large, n-tier Web application that has a custom event tracking system.
You need to create a custom event type that enables your event tracking system to record all relevant
event details for all types of events.
The events must be stored in Microsoft SQL Server.
From which base type should your custom event type inherit?
Correct Answer: C
QUESTION NO: 3
You want to enable users of a Web application to modify the Web application's UI and behavior.
These modifications must be maintained at the user level so that when users return to the Web application,
the changes are still in effect.
You need to achieve this goal by using the minimum amount of custom code.
What should you do?
You want to enable users of a Web application to modify the Web application's UI and behavior.
These modifications must be maintained at the user level so that when users return to the Web application,
the changes are still in effect.
You need to achieve this goal by using the minimum amount of custom code.
What should you do?
Correct Answer: D
QUESTION NO: 4
You are creating a Microsoft ASP.NET Web site. The Web site has a Web page that contains the following code fragment.
<asp:Label ID="Label1" runat="server" Text="Hello 1" ForeColor="red" Font-
Italic="false" />
<asp:Label ID="Label2" runat="server" Text="Hello 2" ForeColor="red"
SkinId="Winter" />
You add a skin file to the MyTheme folder.
You need to ensure that the following requirements are met:
The font style of Label1 is italic and its foreground color remains red. The foreground color of Label2 is blue.
What should you do?
You are creating a Microsoft ASP.NET Web site. The Web site has a Web page that contains the following code fragment.
<asp:Label ID="Label1" runat="server" Text="Hello 1" ForeColor="red" Font-
Italic="false" />
<asp:Label ID="Label2" runat="server" Text="Hello 2" ForeColor="red"
SkinId="Winter" />
You add a skin file to the MyTheme folder.
You need to ensure that the following requirements are met:
The font style of Label1 is italic and its foreground color remains red. The foreground color of Label2 is blue.
What should you do?
Correct Answer: B
QUESTION NO: 5
You are developing a Web application that has two distinct UIs. One UI is targeted to desktop browsers.
The other UI is targeted to mobile devices. The mobile devices might or might not support cookies and relative URLs.
Users request the Default.aspx page.
You need to redirect users to the appropriate UI, depending on whether they are using a mobile device or a desktop browser.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
You are developing a Web application that has two distinct UIs. One UI is targeted to desktop browsers.
The other UI is targeted to mobile devices. The mobile devices might or might not support cookies and relative URLs.
Users request the Default.aspx page.
You need to redirect users to the appropriate UI, depending on whether they are using a mobile device or a desktop browser.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
Correct Answer: A,C
QUESTION NO: 6
You are creating a Microsoft ASP.NET application. The application connects to a Microsoft SQL Server
database.
You need to ensure that connections can be reused.
What should you do?
You are creating a Microsoft ASP.NET application. The application connects to a Microsoft SQL Server
database.
You need to ensure that connections can be reused.
What should you do?
Correct Answer: A
QUESTION NO: 7
You are creating a Microsoft ASP.NET Web application. The application connects to a remote Microsoft
SQL Server database.
You need to ensure that the Web application can be deployed to a remote Web server.
You also need to ensure that the Web application does not contain the source code and markup in user
controls during deployment.
What should you do?
You are creating a Microsoft ASP.NET Web application. The application connects to a remote Microsoft
SQL Server database.
You need to ensure that the Web application can be deployed to a remote Web server.
You also need to ensure that the Web application does not contain the source code and markup in user
controls during deployment.
What should you do?
Correct Answer: A
QUESTION NO: 8
You are developing a Web control. The Web control captures user address information in a Web
application.
You create a class named AddressControl that inherits from CompositeControl. This control consists of
child controls.
You need to ensure that the child controls are properly output to the browser.
Developers using your control must be able to set the appropriate text for labels.
In addition, they must be able to pull user address information from the associated text boxes during
postback.
What should you do?
You are developing a Web control. The Web control captures user address information in a Web
application.
You create a class named AddressControl that inherits from CompositeControl. This control consists of
child controls.
You need to ensure that the child controls are properly output to the browser.
Developers using your control must be able to set the appropriate text for labels.
In addition, they must be able to pull user address information from the associated text boxes during
postback.
What should you do?
Correct Answer: C
QUESTION NO: 9
You create a Microsoft ASP.NET Web application. The home page of the application contains two Mobile Web Form controls named Form1 and Form2.
The code-behind file of the home page contains the following code segment. (Line numbers are included for reference only.)
01 Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) 02 If Not IsPostBack Then
04 End If 05 End Sub
You need to ensure that Form2 is displayed when the home page is called for the first time.
Which line of code should you insert at line 03?
You create a Microsoft ASP.NET Web application. The home page of the application contains two Mobile Web Form controls named Form1 and Form2.
The code-behind file of the home page contains the following code segment. (Line numbers are included for reference only.)
01 Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) 02 If Not IsPostBack Then
04 End If 05 End Sub
You need to ensure that Form2 is displayed when the home page is called for the first time.
Which line of code should you insert at line 03?
Correct Answer: C
QUESTION NO: 10
You create a Web site with membership and personalization enabled. You must use an existing CRM database for storing the membership information.
You need to implement the Membership Provider.
What should you do?
You create a Web site with membership and personalization enabled. You must use an existing CRM database for storing the membership information.
You need to implement the Membership Provider.
What should you do?
Correct Answer: B




