Microsoft UPGRADE: MCAD Skills to MCTS Web Apps Using MS.NET Framework (070-559) Free Practice Test
Question 1
You have just graduated from college, now you are serving the internship as the software developer in an international company. According to the requirements of the company CIO, you create a Web Form that contains a TreeView control. Users are allowed to navigate within the Marketing section of your Web site by using the TreeView control. The following XML defines the site map for your site.
<siteMapNode url="~\default.aspx" title="Home" description="Site Home Page"> <siteMapNode url="Sales.aspx" title="Sales" description="Sales Home"> <siteMapNode url="SalesWest.aspx" title="West Region" description="Sales for the West Region" /> <siteMapNode url="SalesEast.aspx" title="East Region"
description="Sales for the East Region" />
</siteMapNode>
<siteMapNode url="Marketing.aspx" title="Marketing"
description="Marketing Home">
<siteMapNode url="MarketNational.aspx" title="National Campaign" description="National marketing campaign" /> <siteMapNode url="MarketMidwest.aspx" title="Midwest Campaign" description="Midwest region marketing campaign" /> <siteMapNode url="MarketSouth.aspx" title="South Campaign" description="South region marketing campaign" /> </siteMapNode> </siteMapNode>
In order to make users be able to navigate only within the Marketing section, you have to bind the TreeView control to the site map data.
So what should you do? (choose more than one)
<siteMapNode url="~\default.aspx" title="Home" description="Site Home Page"> <siteMapNode url="Sales.aspx" title="Sales" description="Sales Home"> <siteMapNode url="SalesWest.aspx" title="West Region" description="Sales for the West Region" /> <siteMapNode url="SalesEast.aspx" title="East Region"
description="Sales for the East Region" />
</siteMapNode>
<siteMapNode url="Marketing.aspx" title="Marketing"
description="Marketing Home">
<siteMapNode url="MarketNational.aspx" title="National Campaign" description="National marketing campaign" /> <siteMapNode url="MarketMidwest.aspx" title="Midwest Campaign" description="Midwest region marketing campaign" /> <siteMapNode url="MarketSouth.aspx" title="South Campaign" description="South region marketing campaign" /> </siteMapNode> </siteMapNode>
In order to make users be able to navigate only within the Marketing section, you have to bind the TreeView control to the site map data.
So what should you do? (choose more than one)
Correct Answer: A,B,C
Question 2
You work as the developer in an IT company. Recently your company has a big customer. The customer runs a large supermarket chain. You're appointed to provide technical support for the customer. Now according to the customer requirement, you are creating a method to hash data with the Secure Hash Algorithm. The data is passed to your method as a byte array named message. You have to use SHA1 to compute the hash of the incoming parameter. Besides this, the result has to be placed into a byte array named hash. In the options below, which code segment should you use?
Correct Answer: C
Question 3
You work as the developer in an IT company. Recently your company has a big customer. The customer runs a large supermarket chain. You're appointed to provide technical support for the customer. Now according to the customer requirement, you create a Web Form to which you add the following CreateUserWizard server control.
<asp:CreateUserWizard runat="server" ID="CU1" FinishCompleteButtonText="Continue">
<WizardSteps>
<asp:CreateUserWizardStep ID="CWS1" Runat="server" Title="New Account"/>
<asp:WizardStep ID="CWS2" Title="More Info" StepType="Step">
Given Name:<asp:TextBox runat="server" ID="txtGivenName" />
Last Surname:<asp:TextBox runat="server" ID="txtSurname" />
</asp:WizardStep>
<asp:CompleteWizardStep ID="CWS3" Runat="server" Title="Complete"/>
</WizardSteps> </asp:CreateUserWizard>
Now you have to write the segment code. After users click the Continue button on the last page, the code should redirect users to the first page of the wizard. In the options below, which code segment should you use?
<asp:CreateUserWizard runat="server" ID="CU1" FinishCompleteButtonText="Continue">
<WizardSteps>
<asp:CreateUserWizardStep ID="CWS1" Runat="server" Title="New Account"/>
<asp:WizardStep ID="CWS2" Title="More Info" StepType="Step">
Given Name:<asp:TextBox runat="server" ID="txtGivenName" />
Last Surname:<asp:TextBox runat="server" ID="txtSurname" />
</asp:WizardStep>
<asp:CompleteWizardStep ID="CWS3" Runat="server" Title="Complete"/>
</WizardSteps> </asp:CreateUserWizard>
Now you have to write the segment code. After users click the Continue button on the last page, the code should redirect users to the first page of the wizard. In the options below, which code segment should you use?
Correct Answer: C
Question 4
You have just graduated from college, now you are serving the internship as the software developer in an international company. You develop an application where there's a method. You assign the output of the method to a string variable named fName. You are using the Microsoft Visual Studio 2005 IDE to examine the output of the method. You have to write a code segment. The code segment should print the following on a single line the message: "Test Failed: "
The value of fName if the value of fName does not equal "John"
Besides this, the code segment must facilitates uninterrupted execution of the application at the same time. You must make sure of this.
In the options below, which code segment should you use?
The value of fName if the value of fName does not equal "John"
Besides this, the code segment must facilitates uninterrupted execution of the application at the same time. You must make sure of this.
In the options below, which code segment should you use?
Correct Answer: A
Question 5
You have just graduated from college, now you are serving the internship as the software developer in an international company. According to the requirements of the company CIO, you create a Web application for the company's intranet. The company wants to enable users to customize their versions of the intranet home page. You create sections of content as Web Parts. You need to ensure that users can customize content at any time. In the options below, which code segment should you use?( choose more than one)
Correct Answer: B,D
Question 6
You have just graduated from college, now you are serving the internship as the software developer in an international company. According to the requirements of the company CIO, you create a mobile Web Form which contains a mobile Calendar control named calDate. The customers want you to capture the date that users choose from the Calendar control. What action should you perform?
Correct Answer: A
Question 7
You have just graduated from college, now you are serving the internship as the software developer in an international company. According to the requirements of the company CIO, you??re creating a mobile Web Form which has the image control below:
<mobile:Image ID="ImageLogo" runat=server ImageURL="logo-bw.gif">
</mobile:Image>
The Web Form displays your company's log. Now your customer wants you to display the logo in red and white on devices that do not support color. Besides this, the client wants to display the logo in color on devices that support color.
So what should you do? (choose more than one)
<mobile:Image ID="ImageLogo" runat=server ImageURL="logo-bw.gif">
</mobile:Image>
The Web Form displays your company's log. Now your customer wants you to display the logo in red and white on devices that do not support color. Besides this, the client wants to display the logo in color on devices that support color.
So what should you do? (choose more than one)
Correct Answer: B,D
Question 8
You work as the developer in an IT company. Recently your company has a big client. The clients asks you to develop a dictionary by using the Microsoft .NET Framework. You have to define the custom-dictionary class. You name it myDic. This dictionary must be type safe. Which should you use?
Correct Answer: B