Microsoft UPGRADE: MCAD Skills to MCTS Web Apps Using MS.NET Framework (70-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??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 2
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 auditing application to display the trusted ClickOnce applications. The applications are installed on a computer. Now you need the auditing application to display the origin of each trusted application. In the options below, which code segment should you use?
Correct Answer: B
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 serve the customer. For a new client application, you are creating a utility screen which displays a thermometer. The thermometer conveys the current status of processes being carried out by the application.
On the screen, you have to draw a rectangle to serve as the background of the thermometer as shown in the exhibit. The rectangle must be full of gradient shading. (Click the Exhibit button.)
In the options below, which code segment should you choose?

On the screen, you have to draw a rectangle to serve as the background of the thermometer as shown in the exhibit. The rectangle must be full of gradient shading. (Click the Exhibit button.)
In the options below, which code segment should you choose?

Correct Answer: B
Question 4
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 developing a Web application. The Web application contains two distinct UIs, one is targeted to mobile devices which might or might not support cookies and relative URLs, another to desktop browsers. Users request the Default.aspx page. You have to redirect users to the appropriate UI, on the basis that whether they are using a mobile device or a desktop browser. What should you do?
Correct Answer: B,D
Question 5
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 6
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 you are creating a class which contains a method named GetCurrentRate. The class performs complex financial calculations. The GetCurrentRate method retrieves the current interest rate and a variable named currRate that stores the current interest rate. You have to write a code segment. When an instance of the class is deserialized, the code segment updates the currRate variable with the current interest rate. In the options below, which code segment should you use?
Correct Answer: D
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 are creating a class. The class uses unmanaged resources and maintains references to managed resources on other objects. You must make sure that when the class instance cease to be needed, users of this class can explicitly release resources. what should you do? (choose more than one)
Correct Answer: A,B,E
Question 8
You work as the developer in an IT company. Recently your company has a big customer. The customer is a large international compay. You're appointed to provide technical support for the customer. Now according to the customer requirement, 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" titlbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbe="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" titlbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbe="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: B,E,F
Question 9
You have just graduated from college, now you are serving the internship as the software
developer in an international company. There's an SQL query that takes one minute to execute. You execute the SQL query asynchronously by using the following code:
Dim ar As IAsyncResult = cmd.BeginExecuteReader()
When you're executing the SQL query is executing, you have to execute a method named DoWork(). It takes one second for the method to execute. When the SQL query is executing, DoWork() must run as many times as possible.
In the options below, which code segment should you use?
developer in an international company. There's an SQL query that takes one minute to execute. You execute the SQL query asynchronously by using the following code:
Dim ar As IAsyncResult = cmd.BeginExecuteReader()
When you're executing the SQL query is executing, you have to execute a method named DoWork(). It takes one second for the method to execute. When the SQL query is executing, DoWork() must run as many times as possible.
In the options below, which code segment should you use?
Correct Answer: B