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

Question: You work as a Web Developer at Company.com. You are in the process of creating a Web application that uses Microsoft ASP.NET 3.5. You create a folder named Dark in the App_Themes folder of the Web application. You also add four skin files to this folder. You have to make sure that the controls on a page have their appearances overridden by the control definitions defined in the skin files. What should you do? Which Page directive should you use?

  1. You should use the page directive: <%@ Page StyleSheetTheme=”App_Themes.Dark”/>
  2. You should use the page directive: <%@ Page Theme=”App_Themes.Dark”/>
  3. You should use the page directive: <%@ Page Theme=”Dark”/>
  4. You should use the page directive: <%@ Page StyleSheetTheme=”Dark”/>

Correct Answer: 3


Question: You work as a Web Application Developer. You are in the process of creating an ASP.NET application for mobile devices using .NET Framework 3.5. You application contains a Web page named Display.aspx that has the following StyleSheet control:

<mobile:StyleSheet id="css1" runat="server">
<mobile:Style Name="font1" Font-Name="Arial" Font-Bold="True" Wrapping="NoWrap">
</mobile:Style>
</mobile:StyleSheet> 

You receive an instruction from management to add a Label control named lbl1 to the Display.aspx pag

  • The lbl1 Label control will use the style defined in the css1 StyleSheet control. You should thus determine the appropriate markup that needs to be use
  • What should you do?
    1. You should consider using the following markup:
      <mobile:Label ID=”lbl1″ Runat=”server”>
      <DeviceSpecific ID=”devSp1″ Runat=”server”>
      <Choice Argument=”font1″ StyleReference=”css1″ />
      </DeviceSpecific>
      </mobile:Label>
    2. You should consider using the following markup:
      <mobile:Label ID=”lbl1″ Runat=”server” StyleReference=”font1″>
      </mobile:Label>
    3. You should consider using the following markup:
      <mobile:Label ID=”lbl1″ Runat=”server”>
      <DeviceSpecific ID=”devSp1″ Runat=”server”>
      <Choice Filter=”css1″ StyleReference=”font1″ />
      </DeviceSpecific>
      </mobile:Label>
    4. You should consider using the following markup:
      <mobile:Label ID=”lbl1″ Runat=”server”StyleReference=”css1:font1″>
      </mobile:Label>

    Correct Answer: 2


    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. You application contains a Web page named TestScore.aspx. You discover that a stack trace is displayed to the user when the application encounters an unhandled exception in TestScore.aspx. You must prevent the stack trace from being displayed and ensure that a Web page named Error.aspx is displayed instea

  • What should you do?
    1. This can be accomplished by setting the Page attribute for TestScore.aspx as follows:
      <%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”TestScore.aspx.cs”
      Inherits=”TestScore” ErrorPage=”~/Error.aspx” Debug=”false” %>
      Thereafter you need to add the subsequent section to the Web.config fil
    2. <customErrors mode=”On” />
    3. This can be accomplished by setting the Page attribute for TestScore.aspx as follows:
      <%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”TestScore.aspx.cs”
      Inherits=”TestScore” %>
      Thereafter you need to add the subsequent section to the Web.config fil
    4. <customErrors mode=”Off” defaultRedirect=”Error.aspx” />
    5. This can be accomplished by setting the Page attribute for TestScore.aspx as follows:
      <%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”TestScore.aspx.cs”
      Inherits=”TestScore” Debug=”true” %>
      Thereafter you need to add the subsequent section to the Web.config fil
    6. <customErrors mode=”On” defaultRedirect=”Error.aspx” />
    7. This can be accomplished by setting the Page attribute for TestScore.aspx as follows:
      <%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”TestScore.aspx.cs”
      Inherits=”TestScore” Debug=”true” ErrorPage=”~/Error.aspx” %>
      Thereafter you need to add the subsequent section to the Web.config fil
    8. <customErrors mode=”Off” />

    Correct Answer: 1


    Question: You work as an application developer at Company.com. A previous developer used Microsoft .NET Framework 3.5 to create an ASP.NET application. You need to update the application. You receive an instruction from management to implement a theme for the application. You have to make sure that the theme will override the current settings on the various controls. You need to determine a way to accomplish this. What should you do?

    1. This can be accomplished by adding the master page to the application. Thereafter the StyleSheetTheme attribute should be set to the name of the theme in the @Master directiv
    2. This can be accomplished by adding the master page to the application. Thereafter the Theme attribute should be set to the name of the theme in the @Master directiv
    3. This can be accomplished by setting the StyleSheetTheme attribute of the pages element to the name of the theme in the Web.config file of the application.
    4. This can be accomplished by setting the Theme attribute of the pages element to the name of the theme in the Web.config file of the application.

    Correct Answer: 4


    Question: You work as an application developer at Company.com. You are in the process of creating a Microsoft ASP.NET application that uses Microsoft .NET Framework 3.5. You want to implement user selectable themes for the application. You intend creating five themes. You need to make sure that the theme selected by a user is displayed when that user returns to the application. This should occur even when the user log on to the application from another computer. What should you do?

    1. This can be accomplished using the Response.Cookies collection in order to store the name of the theme that is selected by the client.
    2. This can be accomplished by retrieving the required theme name from the Session object every time the client visits a pag
    3. This can be accomplished by retrieving the required theme name every time the client visits a pag
    4. This can be accomplished by retrieving the required theme name from the Application object every time the client visits a pag

    Correct Answer: 2

  • Tagged . Bookmark the permalink.

    Leave a Reply