PrepAway - Latest Free Exam Questions & Answers

Author: admin

Which of the following code segments should you use to allow the application to update the image if a user cha

You are busy developing a Microsoft Windows Forms application. The application will be shrink-wrapped and sold to end users. The application is specified so that if a user installs it, it will uses the user’s display preferences to create Help images for each form in the application.
Which of the following code segments should you use to allow the application to update the image if a user changes system colors? (Select two)

Which code segment should you use to display the part data in a DataGridView control named testdataGridView?

You have called a stored procedure that returns a row set that has data about electrical chips. You then load the part data in a DataSet instance named testdataSet.
The DataSet has a single Data Table instance. The DataTable instance’s TableName property is set to Part.
Which code segment should you use to display the part data in a DataGridView control named testdataGridView?

Which code segment should you add at line 03?

You are creating a Windows Forms application. The application loads a data table named dt from a database and modifies each value in the data table. You add the following code.
(Line numbers are included for reference only.)

01 foreach (DataRow row in dt.Rows) {
02 foreach (DataColumn col in dt.Columns) {
04 Trace.WriterLine(str);
05 }
06 }

You need to format the string named str to show the value of the column at the time the data is loaded and the current value in the column. Which code segment should you add at line 03?

Which two actions should you perform?

You write a client application that uses a Web service.
The Web service is hosted in a Windows service application.
The Web service can be called only by using TCP.
You are provided with the proxy that is enabled by Web Services Enhancements (WSE) 3.0.
The proxy was generated by adding a Web reference by using Microsoft Visual Studio 2005.
You need to ensure that the proxy calls the Web service correctly.

Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)