Microsoft 70-567 Real Exam Questions

UPGRADE: Transition your MCPD Web Developer Skills to MCPD ASP.NET Developer 3.5

This exam is intended for candidates who hold an MCPD web Developer 2.0 certification and wish to upgrade to MCPD ASP.NET Developer 3.5.

Questions that contain code will be presented in either VB or C#.  Candidates can select one of these languages when they start the exam.

1: You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web page named Default.aspx in the root of the application. You add an ImageResources.resx resource file in the App_GlobalResources folder. The ImageResources.resx file contains a localized resource named LogoImageUrl. You need to retrieve the value of LogoImageUrl. Which code segment should you use?
A.string logoImageUrl = (string)GetLocalResource("LogoImageUrl");
B.string logoImageUrl = (string)GetGlobalResource("Default",  "LogoImageUrl");
C.string logoImageUrl = (string)GetGlobalResource("ImageResources",  "LogoImageUrl");
D.string logoImageUrl =  (string)GetLocalResource("ImageResources.LogoImageUrl");
Correct Answers: C

2: You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a custom Web user control named SharedControl. The control will be compiled as a library.
You write the following code segment for the SharedControl control. (Line numbers are included for reference only.) 01 protected override void OnInit(EventArgs e)02 {03   base.OnInit(e);0405 }
All the master pages in the ASP.NET application contain the following directive.
<%@ Master Language="C#" EnableViewState="false" %>
You need to ensure that the state of the SharedControl control can persist on the pages that reference a master page.
Which code segment should you insert at line 04?
A.Page.RegisterRequiresPostBack(this);
B.Page.RegisterRequiresControlState(this);
C.Page.UnregisterRequiresControlState(this);
D.Page.RegisterStartupScript("SharedControl","server");
Correct Answers: B

3: You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web page named enterName.aspx. The Web page contains a TextBox control named txtName. The Web page cross posts to a page named displayName.aspx that contains a Label control named lblName. You need to ensure that the lblName Label control displays the text that was entered in the txtName TextBox control. Which code segment should you use?
A.lblName.Text = Request.QueryString["txtName"];
B.TextBox txtName = FindControl("txtName") as TextBox;lblName.Text = txtName.Text;
C.TextBox txtName = Parent.FindControl("txtName") as TextBox;lblName.Text = txtName.Text;
D.TextBox txtName = PreviousPage.FindControl("txtName") as TextBox;lblName.Text = txtName.Text;
Correct Answers: D

4: You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5. When you review the application performance counters, you discover that there is an unexpected increase in the value of the Application Restarts counter. You need to identify the reasons for this increase. What are three possible reasons that could cause this increase? (Each correct answer presents a complete solution. Choose three.)
A.Restart of the Microsoft IIS 6.0 host.
B.Restart of the Microsoft Windows Server 2003 that hosts the Web application.
C.Addition of a new assembly in the Bin directory of the application.
D.Addition of a code segment that requires recompilation to the ASP.NET Web application.
E.Enabling of HTTP compression in the Microsoft IIS 6.0 manager for the application.
F.Modification to the Web.config file in the system.web section for debugging the application.
Correct Answers: C D F

4: You create a Microsoft ASP.NET AJAX application by using the Microsoft .NET Framework version 3.5. A JavaScript code segment in the AJAX application does not exhibit the desired behavior. Microsoft Internet Explorer displays an error icon in the status bar but does not prompt you to debug the script. You need to configure the Internet Explorer to prompt you to debug the script. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A.Clear the Disable Script Debugging (Other) check box.
B.Clear the Disable Script Debugging (Internet Explorer) check box.
C.Select the Show friendly HTTP error messages check box.
D.Select the Enable third-party browser extensions check box.
E.Select the Display a notification about every script error check box.
Correct Answers: B E

5: You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application contains two HTML pages named ErrorPage.htm and PageNotFound.htm.
You need to ensure that the following requirements are met:
   When the user requests a page that does not exist, the PageNotFound.htm page is displayed.
   When any other error occurs, the ErrorPage.htm page is displayed.
Which section should you add to the Web.config file?
A.<customErrors mode="Off" defaultRedirect="ErrorPage.htm">  <error statusCode="404" redirect="PageNotFound.htm"/></customErrors>
B.<customErrors mode="On" defaultRedirect="ErrorPage.htm">  <error statusCode="404" redirect="PageNotFound.htm"/></customErrors>
C.<customErrors mode="Off">  <error statusCode="400" redirect="ErrorPage.htm"/>  <error statusCode="404" redirect="PageNotFound.htm"/></customErrors>
D.<customErrors mode="On">  <error statusCode="400" redirect="ErrorPage.htm"/>  <error statusCode="404" redirect="PageNotFound.htm"/></customErrors>
Correct Answers: B

6: You create a Microsoft ASP.NET AJAX application by using the Microsoft .NET Framework version 3.5. You attach Microsoft Visual Studio 2008 debugger to the Microsoft Internet Explorer instance to debug the JavaScript code in the AJAX application. You need to ensure that the application displays the details of the client-side object on the debugger console. What should you do?
A.Use the Sys.Debug.fail method.
B.Use the Sys.Debug.trace method.
C.Use the Sys.Debug.assert method.
D.Use the Sys.Debug.traceDump method.
Correct Answers: D

7: You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5. The application uses ASP.NET AJAX, and you plan to deploy it in a Web farm environment. You need to configure SessionState for the application. Which code fragment should you use?
A.<sessionState mode="InProc" cookieless="UseCookies" />
B.<sessionState mode="InProc" cookieless="UseDeviceProfile" />
C.<sessionState mode="SQLServer" cookieless="false" sqlConnectionString="Integrated Security=SSPI;data  source=MySqlServer;" />
D.<sessionState mode="SQLServer" cookieless="UseUri" sqlConnectionString="Integrated Security=SSPI;data  source=MySqlServer;" />
Correct Answers: C

8: You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5. The computer that hosts the ASP.NET Web application contains a local instance of Microsoft SQL Server 2005. The instance uses Windows Authentication. You plan to configure the membership providers and the role management providers. You need to install the database elements for both the providers on the local computer. What should you do?
A.Run the sqlcmd.exe -S localhost E command from the command line.
B.Run the aspnet_regiis.exe -s localhost command from the command line.
C.Run the sqlmetal.exe /server:localhost command from the command line.
D.Run the aspnet_regsql.exe -E -S localhost -A mr command from the command line.
Correct Answers: D

9: You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5. You use Windows Authentication for the application. You set up NTFS file system permissions for the Sales group to access a particular file. You discover that all the users are able to access the file. You need to ensure that only the Sales group users can access the file. What additional step should you perform?
A.Remove the rights from the ASP.NET user to the file.
B.Remove the rights from the application pool identity to the file.
C.Add the <identity impersonate="true"/> section to the Web.config file.
D.Add the <authentication mode="[None]"> section to the Web.config file.
Correct Answers: C

10: You are creating an ASP.NET application by using the .NET Framework 3.5.
The application has performance problems. You plan to collect sample timing information for each page.
You need to ensure that while collecting the information, the following requirements are met:
The application remains online.
The trace output is not visible to end users.
The trace output contains the rendering time for all controls on all the pages.
What should you do?
A.Set the Trace.IsEnabled property to true in the OnLoad event of each page.
B.Set the HttpContext.Current.Trace.IsEnabled property to true in the BeginRequest event handler.
C.For the trace element in the Web.config file, set the enabled attribute and the pageOutput attribute to true.
D.For the trace element in the Web.config file, set the enabled attribute to true and the pageOutput attribute to false.
Correct Answers: D

Download  |  Password: certificatexam.com

One comment