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

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?

What should you do?

You create Web-based client applications. You create a public function for your application that must connect to a data source. The public function must also perform a series of updates to the data. Some of the operations will result in exceptions if there are errors.

Your exception handling mechanism must meet the following requirements:

Callers of the function must be able to ascertain whether the function succeeded or failed. If the function failed, callers of the function must be able to find where and why it failed. If there is any error, the function must immediately stop processing.

You need to identify the best exception handling mechanism. What should you do?

Which code segment should you use?

You are using the Microsoft Visual Studio 2005 IDE to examine the output of
a method that returns a string. You assign the output of the method to a string variable named fName.

You need to write a code segment that prints the following on a single line

The message: “Test Failed: “
The value of fName if the value of fName does not equal “John”

You also need to ensure that the code segment simultaneously facilitates uninterrupted execution of the application. Which code segment should you use?


Page 6 of 13« First...45678...Last »