Microsoft UPGRADE: MCAD Skills to MCTS Web Apps Using MS.NET Framework - 70-559 Exam Practice Test
Question 1
You work as the developer in an IT company. Recently your company has a big client. The client runs a large supermarket chain. According to the business requirement, the client needs a class which uses unmanaged resources. This class maintains references to managed resources on other objects. You must make sure that when the class instance is not needed, users of this class can explicitly release resources. What should you do? (choose more than one)
Correct Answer: B,C,E
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 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: C
Question 3
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 are creating an application. The application will deploy by using ClickOnce. After the application is created, the customer wants to see whether the application runs properly. So you have to test it. You have to write a method that returns the object, which prompts the user to install a ClickOnce application. 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. Now you are transferring records from one database to another. You are not sure whether you can transfer the records by using the SqlBulkCopy class. You have to identify this. So what should you do?
Correct Answer: C
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 are creating a custom-collection class. A method needs to be created in your class. You must make sure that the method you create returns a type. And the type should be compatible with the Foreach statement. Which criterion should the method meet?
Correct Answer: A
Question 6
You work as the developer in an IT company. There's a Web site that uses custom Themes. Your Web site must support additional Themes based on the user's company name. When a user logs on to the Web site, the company named is set. The company's Theme name is stored in a variable named ThemeName. You have to dynamically set the Web site's Theme by using this variable. So what should you do?
Correct Answer: C
Question 7
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: A
Question 8
You have just graduated from college, now you are serving the internship as the software developer in an international company. There's an array of bytes that is passed to the method in a parameter named document. You are writing a method to compress the array. You have to compress the incoming array of bytes and return the result as an array of bytes. In the options below, which segment should you use?
Correct Answer: A

