PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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 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?