Microsoft TS: Microsoft .NET Framework 2.0 - Web-based Client Development Sample Questions:
1. Every morning, you inspect your company's development and staging servers.
You do this to ensure that the servers have the same versions of all files in your Web application.
For security reasons, you can only access the staging server through FTP.
You need to synchronize files from the staging server so that the staging server matches the development
server.
You want to achieve this goal by using the minimum amount of administrative effort.
Which tool should you use?
A) XCOPY
B) the Copy Web tool
C) FTP
D) the Publish Web tool
2. You create a Web Form.
You need to add controls that use adaptive rendering to display content. The type of content rendered must depend on the device that is requesting the page.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
A) Add Web server controls to the Web Form.
B) Add custom controls that emit WML to the Web Form.
C) Add mobile controls to the Web Form.
D) Add custom controls that emit XHTML to the Web Form.
3. You create a Web Form. The Web Form contains two Web Parts named CustomerPart and OrdersPart.
CustomerPart contains a drop-down list of customers. OrdersPart contains a list of orders that a customer has placed. You need to create a static connection between CustomerPart and OrdersPart. When a user selects a
customer from CustomerPart, OrdersPart must update.
Which four actions should you perform? (Each correct answer presents part of the solution. Choose four.)
A) Declare the connections within a StaticConnections subtag of a WebPartManager class.
B) Add the ConnectionConsumer attribute to OrdersPart.
C) Add OrdersPart and CustomerPart to the App_Code directory.
D) Declare the connections within a StaticConnections subtag of a WebPartZone class.
E) Add OrdersPart and CustomerPart to the WebParts directory.
F) Add the ConnectionProvider attribute to OrdersPart.
G) Add the ConnectionProvider attribute to CustomerPart.
H) Define an interface specifying the methods and properties that are shared between the Web Parts.
I) Add the ConnectionConsumer attribute to CustomerPart.
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?
A) *Add the following attribute to the page directive. Theme="MyTheme" Add the following code fragment to the skin file. <asp:label runat="server" Font-Italic="true" /> <asp:label runat="server" ForeColor="blue" SkinId="Winter" />
B) *Add the following attribute to the page directive. StyleSheetTheme="MyTheme"
Add the following code fragment to the skin file.
<asp:label runat="server" Font-Italic="true" SkinId="Label1" /> <asp:label runat="server"
ForeColor="blue" SkinId="Label2" />
C) *Add the following attribute to the page directive. Theme="MyTheme" Add the following code fragment to the skin file. <asp:label runat="server" Font-Italic="true" /> <asp:label runat="server" ForeColor="blue" SkinId="Label2" />
D) *Add the following attribute to the page directive. StyleSheetTheme="MyTheme" Add the following code fragment to the skin file. <asp:label runat="server" Font-Italic="true" /> <asp:label runat="server" ForeColor="blue" SkinId="Winter" />
5. You develop a Web control to manage credit card information. The Web control is shown in the exhibit.
You register the control on the Web Form by using the following code segment.
<%@ Register Assembly="CreditCardUserDetails" Namespace="CreditCardUserDetails" TagPrefix="cc1" %>
You need to declare the control on the Web Form.
Which code segment should you use?
A) <cc1:CreditCardDetails ID="CreditCardDetails1" runat="server" Name="%#Container.Name%">
</cc1:CreditCardDetails>
B) <cc1:CreditCardDetails ID="CreditCardDetails1" runat="server" Name="test"> </cc1:CreditCardDetails> <asp:TextBox ID="TxtName" runat="server" Text="<%#CreditCardDetails1.Name%>"> </asp:TextBox>
C) <cc1:CreditCardDetails ID="CreditCardDetails1" runat="server"> <Template> <asp:TextBox ID="TxtName" runat="server" Text="<%#Container.Template%>"></asp:TextBox> </Template> </cc1:CreditCardDetails>
D) <cc1:CreditCardDetails ID="CreditCardDetails1" runat="server"> <Template> <asp:TextBox ID="TxtName" runat="server" Text="<%#Container.Name%>"></asp:TextBox> </Template> </cc1:CreditCardDetails>
Solutions:
| Question # 1 Answer: B | Question # 2 Answer: A,C | Question # 3 Answer: A,B,G,H | Question # 4 Answer: A | Question # 5 Answer: D |
We're so confident of our products that we provide no hassle product exchange.


By Oliver

