PrepAway - Latest Free Exam Questions & Answers

Category: 70-552

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

Which code segment should you use?

A Windows Forms application contains the following code segment.

string SQL = @”SELECT EmployeeID, LastName, FirstName FROM Employees”;
SqlDataAdapter da = new SqlDataAdapter(SQL, connStr);
DataTable dt = new DataTable();
da.MissingSchemaAction = MissingSchemaAction.AddWithKey;
SqlCommandBuilder bld = new SqlCommandBuilder(da);
da.Fill(dt);

The application allows the user to add rows to the data table. The application will propagate these additions to the database. If the addition of any row fails, the other rows must still be added. The code must log how many new rows failed to be added. You need to propagate the additions to the database and log a failed count.
Which code segment should you use?

What should you do?

You are creating a Windows Forms application. The application executes a stored procedure that takes several seconds to complete. The stored procedure is invoked to populate a SqlDataReader object. You need to ensure that the application remains responsive to the user while the stored procedure is executing.
What should you do?

<?xml version="1.0"?

A Windows Forms application reads the following XML file.

<?xml version=”1.0″?>
<x:catalog xmlns:x=”urn:books”>
<book id=”bk101″>
<author>Gambardella, Matthew</author>
<title>XML Developer’s Guide</title>
</book>
<book id=”bk102″>
<author>Ralls, Kim</author>
<title>Midnight Rain</title>
</book>
</x:catalog>

The form initialization loads this file into an XmlDocument object named docBooks. You need to populate a ListBox control named lstBooks with the concatenated book ID and title of each book.
Which code segment should you use?

What should you do?

You are modifying a Windows Forms application. The application consists of a main window with many different controls. All of the controls provide tool tips that use the default ToolTip control settings. One group of controls provides tool tips that show regulatory guidance for the user. Users want the wait time when reading the tool tips and navigating among them to be minimal. You need to ensure that this group of controls provides short delays before the tool tips appear.
What should you do?

Which three actions should you perform?

You are creating an application named App1. You use ClickOnce deployment to distribute App1.exe and multiple assemblies. Some users require only some of the functionality in App1. You need to limit the size of the initial download of the application. You also need to ensure that users can download the assemblies on demand.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)

Which type or types of data access are allowed?

You are configuring a ClickOnce deployment that allows users to install your application from the Internet zone under partial trust permissions. You want the application to access data that resides on the same remote server from which the application is installed. You need to add one or more types of data access that are allowed under partial trust permissions to your application.
Which type or types of data access are allowed? (Choose all that apply.)

Which code segment should you use to format the columns at run time?

You are creating a Windows Form. You add a TableLayoutPanel control named pnlLayout to the form. You set the properties of pnlLayout so that it will resize with the form. You need to create a three-column layout that has fixed left and right columns. The fixed columns must each remain 50 pixels wide when the form is resized. The middle column must fill the remainder of the form width when the form is resized. You add the three columns in the designer.
Which code segment should you use to format the columns at run time?


Page 3 of 1212345...10...Last »