Microsoft TS: Microsoft .NET Framework 2.0 - Web-based Client Development (70-528) Free Practice Test
Question 1
You create a Web setup project to deploy a Web application.
You add a custom action to the project to configure Internet Information Services (IIS) 6.0 server settings.
You need to ensure that the custom action can run scripts and executables on the Web server.
Which property of the Web setup project should you configure?
You add a custom action to the project to configure Internet Information Services (IIS) 6.0 server settings.
You need to ensure that the custom action can run scripts and executables on the Web server.
Which property of the Web setup project should you configure?
Correct Answer: B
Question 2
You are developing a Web site that includes images.
You need to ensure that the Web site is accessible by using screen readers.
Which code fragment should you use?
You need to ensure that the Web site is accessible by using screen readers.
Which code fragment should you use?
Correct Answer: B
Question 3
You are creating a mobile Web Form that dynamically displays news items.
You want to display news items by using an instance of a mobile TextView control named TextViewNews.
You need to configure the Web Form that contains TextViewNews. The Web Form must enable pagination
in case a user's device does not display the full text of a news item.
Which code segment should you use?
You want to display news items by using an instance of a mobile TextView control named TextViewNews.
You need to configure the Web Form that contains TextViewNews. The Web Form must enable pagination
in case a user's device does not display the full text of a news item.
Which code segment should you use?
Correct Answer: D
Question 4
You are creating a Microsoft ASP.NET Web site.
The Web site uses Windows authentication and impersonates authenticated users. You create a method named GetData to access remote resources.
You need to temporarily bypass impersonation while calling GetData.
Which code segment should you use?
The Web site uses Windows authentication and impersonates authenticated users. You create a method named GetData to access remote resources.
You need to temporarily bypass impersonation while calling GetData.
Which code segment should you use?
Correct Answer: A
Question 5
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 void Page_Load(object sender, EventArgs e) {
02 if (!IsPostBack) {
04 }
05?}
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?
The code-behind file of the home page contains the following code segment. (Line numbers are included for reference only.)
01 protected void Page_Load(object sender, EventArgs e) {
02 if (!IsPostBack) {
04 }
05?}
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 6
You write a logging function for a Web Form. You call the logging function from the Page_Unload event handler.
You test the Web Form and notice that the Page_Unload event handler does not call the logging function.
You need to ensure that the logging function is called.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
You test the Web Form and notice that the Page_Unload event handler does not call the logging function.
You need to ensure that the logging function is called.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
Correct Answer: A,C
Question 7
You create a server control that inherits from WebControl.
You need to enable the server control to emit markup for a new kind of mobile device. You must not alter the code in the server controls.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
You need to enable the server control to emit markup for a new kind of mobile device. You must not alter the code in the server controls.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Correct Answer: B,D
Question 8
You are developing an application that extracts data from a database.
You need to close the database connections that are open even when exceptions occur.
Which code segment should you use?
You need to close the database connections that are open even when exceptions occur.
Which code segment should you use?
Correct Answer: B