Which of the following segments should you use?
You need to implement an asynchronous method to the Download method.
You have the following class:
public class Job
{
public void Download[]
{
}
}
Which of the following segments should you use? (Use the event-base asynchronous pattern)
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 event should you use?
You create an application that provides accessibility features. Your standard forms display a background image. When the user selects Use High Contrast in the Accessibility Options in Control Panel, you want this image to be removed. You need to add an event to handle this accessibility setting change.
Which event should you use?
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 code segment should you use?
You are creating a Windows Forms application. Initialization code loads a DataSet object named ds that includes a table named Users. The Users table includes a column named IsManager. You need to bind the IsManager column to the Checked property of a check box named chkIsManager. Which code segment should you use?
Which two actions should you perform?
A Web service exposes the following Web method.
[WebMethod(CacheDuration=60)]
public byte[] GetImage(string imageId)
{
…
}
The Web method generates responses that are greater than 1 MB in size.
You need to configure the Web method to minimize memory usage on the server.
Which two actions should you perform?
(Each correct answer presents part of the solution. Choose two.)
which Web services are hosted in IIS. What should you do?
You build Web services by using Microsoft Visual Studio 2005.
Some of the Web services are hosted in IIS.
You need to ensure that remote systems cannot dynamically discover which Web services are hosted in IIS.
What should you do?
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.)
Which code segment should you use?
You are creating a Web service to expose the public methods on a class.
Two overloaded methods are defined in the class as follows:
public Customer GetCustomer(string custId)
public Customer GetCustomer(string name, string postalCode)
You need to expose both methods on the Web service.
Which code segment should you use?