PrepAway - Latest Free Exam Questions & Answers

Category: 70-551

Exam 70-551: UPGRADE: MCAD Skills to MCPD Web Developer by Using the Microsoft .NET Framework

Which two actions should you perform?

You are creating a mobile Web Form that displays your company’s logo. The Web Form contains the following image control.
<mobile:Image ID=”ImageLogo” runat=server ImageURL=”logo-bw.gif”> </mobile:Image>

You need to display the logo in black and white on devices that do not support color. In addition, you need to display the logo in color on devices that support color. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

What are two possible ways to achieve this goal?

You are developing a Web application that has two distinct UIs. One UI is targeted to desktop browsers. The other UI is targeted to mobile devices. The mobile devices might or might not support cookies and relative URLs. Users request the Default.aspx page. You need to redirect users to the appropriate UI, depending on whether they are using a mobile device or a desktop browser.
What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

Which three actions should you perform?

You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate within the Marketing section of your Web site. 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>

You need to bind the TreeView control to the site map data so that users can navigate only within the Marketing section.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)

What should you do?

You are developing a Web application. The Web application uses a GridView control to display data. You build your Web Forms for the Web application by dragging and dropping tables from the Data Connections tree in Server Explorer. You need to add a connection to your data by using the Add Connection dialog box as shown in the exhibit.

During the process, you need to configure the .NET Data Provider that you use to create the data source objects.
What should you do?

Which code segment should you use?

You have an SQL query that takes one minute to execute. You use the following code segment to execute the SQL query asynchronously.

IAsyncResult ar = cmd.BeginExecuteReader();

You need to execute a method named DoWork() that takes one second to run while the SQL query is executing. DoWork() must run as many times as possible while the SQL query is executing.
Which code segment should you use?


Page 11 of 13« First...910111213