Which code segment should you use?
You are developing an application that will deploy by using ClickOnce. You need to test if the application executes properly. You need to write a method that returns the object, which prompts the user to install a ClickOnce application. Which code segment should you use?
What should you do?
You create Microsoft Windows-based applications. You create a component that calls an existing function. The design for the function specifies that it might throw an application-specific exception named InvalidChecksumException, which inherits from System.ApplicationException. The InvalidChecksumException exception is an error that can be handled. But the component cannot handle any other type of error. The component does not have any additional information that can be added to other types of errors. You need to design the component to correctly handle exceptions. You also need to ensure that the exception-handling strategy does not affect performance.
What should you do?
What should you do?
You are an enterprise application developer. You are designing an event logging mechanism for an application. The application will be installed on all computers in your company. The company policy has the following requirements: Developers must be informed of critical events.Help-desk technicians must have access to all events on each computer. You need to design the event logging storage strategy that complies with the company policy. What should you do?
Which code segment should you use?
You are developing an auditing application to display the trusted ClickOnce applications that are installed on a computer. You need the auditing application to display the origin of each trusted application. Which code segment should you use?
What should you do?
A Windows Forms application loads an XmlDocument from a file named books.xml. You need to validate the XML against a schema that is contained in the books.xsd file when the XML loads.
What should you do?
What should you do?
You are an enterprise application developer. You develop a component that provides audio files for client applications. The component must meet the following requirements: Optimal performance for playback.Minimal download time. You need to design a strategy that meets the requirements. What should you do?
Which criterion should the method meet?
You are developing a custom-collection class. You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?
Which code segment should you use?
You are creating a Windows Forms application. The application uses a SqlCommand object named cmd. The cmd object executes the following stored procedure.
CREATE PROCEDURE GetPhoneList
AS
BEGIN
SELECT CompanyName, Phone FROM Customers
SELECT CompanyName, Phone FROM Suppliers
END
You need to add all returned rows to the ListBox control named lstPhones.
Which code segment should you use?
you recommend?
You are an enterprise application developer. You are designing unit tests for a Customer class.
The Customer class contains properties to get or set data in private fields. The Customer class
also contains one default constructor and one non-default constructor. The non-default constructor accepts a Customer ID argument. When the non-default constructor is used to instantiate the Customer object, a public method named Load is invoked along with the Customer
ID argument. The Customer object properties are then loaded by using values from the database.
You need to design unit tests that will test the class properties. Which three test scenarios should
you recommend? (Each correct answer presents part of the solution. Choose three.)
What should you do?
You create Web-based client applications. You are creating an ASP.NET intranet site. The site permits individual departments to post content without involving the Central Information Technology resources. The site also permits Central Information Technology to maintain control over the intranet as a whole. Each department wants complete control over the appearance and behavior of their departmental content. However, Information Technology directives require every page on the intranet to maintain a consistent appearance and behavior. You need to develop the Web page on the intranet site so that it meets the requirements. What should you do?