PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which three components should you choose?

You create Web-based applications. You are creating an application that manages travel arrangements. Users can book business trips through the application and submit their expense reports. The current design specifies that 10 components are consumed by the application. You need to identify the components that require integration testing. Which three components should you choose? (Each correct answer presents part of the solution. Choose three.)

Which two actions should you perform?

You are creating a Windows Forms application. You add an ErrorProvider component named erpErrors and a DateTimePicker control named dtpStartDate to the application. The application also contains other controls. You need to configure the application to display an error notification icon next to dtpStartDate when the user enters a date that is greater than today’s date.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

What should you do?

You are an enterprise application developer. You are creating a Web service for the application. A Web service method will implement the following validation rules: Non-critical validation rules
return a warningCritical validation rules return an immediate error You create a diagram that displays the application flow as shown in the exhibit. (Click the Exhibit button.) The application contains a rule base class to abstract a validation rule and an execute method to perform validation. A critical validation error in the execution of the method will terminate the validation cycle and throw a custom exception. The Web service method must include warnings from all previous validation rules in a single response. You need to modify the diagram to incorporate the necessary corrections. What should you do?

Which lines are covered by the test?

You create Web-based client applications. You create a Web site that will be used to simulate different types of loans. You are writing a method to calculate the payment on a simple loan. You write the following lines of code for the method. (Comments are included for reference only.)

public static decimal Payment(decimal loanAmount, int period, decimal rate) {
if (!(loanAmount > 0) || !(period > 1) || !(rate > 0)) { // Line A
throw new Exception(“Invalid input!”); // Line B
} else {
return 0M; // Line C: return a calculated payment
}
}
public static decimal CheckBalance(ulong accountID) {
return 0M; // Line D: return calculated balance
}

You write the following code for the unit test.

[TestMethod()]
public void PaymentTest() {
decimal payment = Loan.Payment(100000,360,10); // Line E
Assert.AreEqual(payment, 877.57M); // Line F
}

You enable coverage testing for this unit test. You need to identify the coverage of your test. Which lines are covered by the test?

What should you do?

You are an enterprise application developer. You plan to design the component architecture of a new large-scale application. You need to design a component architecture to meet the following requirements: Class objects must consist of multiple aggregate objects.Multiple aggregate objects must be instantiated only through the object that is enclosed within the class.Certain aggregate objects must be directly instantiated by user code.Multiple aggregate objects must allow user code to override properties within the object.All class objects must be versioned together. What should you do?

What should you recommend?

You create Web-based client applications. You are creating an online reporting application that must generate inventory restocking reports within 34 seconds. In the development environment, during a unit test, generation of the month-end report took 42 seconds. You need to recommend what action must be taken to validate the test results. What should you recommend?

What should you do?

You are creating a Windows Forms application. You set the FlatAppearance.MouseOverBackColor property of a button to Blue. When testing the application, you notice that the background color does not change when you move the pointer over the button. You need to set the properties of the button so that the background color for the button changes to blue when the pointer moves over the button.
What should you do?

Which type of object(s) should you choose?

You are an enterprise application developer. You are creating a distributed application. The application transfers a parent table and a child table from a business component. The application modifies the two tables and transfers updates to the business component. The distributed application must enforce the constraints for referential integrity. The components must provide access to values of the correct type at compile time. You need to identify the type of object for serialization. Which type of object(s) should you choose?