PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which action should you recommend?

You are an enterprise application developer. You are creating a sales application. You make several changes to a commission object within the sales application. The commission object calculates the monthly sales commissions for the sales force of the company. The sales commissions are calculated based on the following criteria:

The commission object receives the following parameters:
o The ID of the sales person
o The monthly gross sales of the sales person

The commission object calls the data access layer to execute three stored procedures. The commission object calculates the commission by performing operations on the output of the stored procedures.
You need to write a unit test for the commission object. Which action should you recommend?

which tier of the application architecture this component will belong to. Where should you place the component

You create Microsoft Windows-based applications. You are upgrading an application that contains custom data-centric user controls. Each of these controls implements its own custom data-binding logic. Much of the data-binding code is similar from control to control. You create a new component that combines the common data-binding logic. You change the existing controls so they use this new component. You need to decide which tier of the application architecture this component will belong to. Where should you place the component?

Which three test scenarios should 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.)

Which two additional data should you use?

You are an enterprise application developer. You create a Web-based application and deploy it to your customers. The application requires the users to log on to use the application. The application does not permit impersonation. The application also requires the users to connect to the database and to a folder in the Web server. Your customers report a security bug. The bug denies access to the logged-on users every time they try to upload a file to the folder in the Web server.
Your customers provide you with the following data to reproduce the bug:

The version of the Web-based application
The users steps in the Web-based application
The version of the operating system

You find that the information is insufficient to reproduce the bug. You need to identify the additional information that is required to reproduce the bug. Which two additional data should you use? (Each correct answer presents part of the solution. Choose two.)

Which code segment should you use?

You are using the Microsoft Visual Studio 2005 IDE to examine the output of
a method that returns a string. You assign the output of the method to a string variable named fName.

You need to write a code segment that prints the following on a single line

The message: “Test Failed: “
The value of fName if the value of fName does not equal “John”

You also need to ensure that the code segment simultaneously facilitates uninterrupted execution of the application. Which code segment should you use?

Which two data handling mechanisms should you choose?

You create Microsoft Windows-based applications. You create a component to process daily reports. These daily reports are data-driven.

Eight database tables dictate the following properties:

the data that is printed
the format of the data
the order of output

The component loads the configuration data into a specific internal structure. Subsequently, the component retrieves and outputs the report data based on the configuration settings that are stored in the internal structure. The database is not updated. You need to develop the data handling capabilities of the component to manage the configuration data and the report data. You also need to ensure that the reports are generated as quickly as possible.
Which two data handling mechanisms should you choose? (Each correct answer presents part of the solution. Choose two.)

Which component should you choose?

You are an enterprise application developer. You are testing authentication in a Microsoft Windows-based application.
After the user enters the user name and password in the logon form of the user interface component, the following responses are triggered:

The user interface component passes the user name and password to a utility component that performs the encryption.
The user interface component then passes the encrypted user name and password to a Web service.
The Web service invokes a business component and passes the encrypted user name and password.
The business component passes the encrypted user name and password to a data access layer component that validates the user.

You need to identify the component on which the business component depends. Which component should you choose?

Which two actions should you perform?

You create Microsoft Windows-based applications. You are creating a component. The component performs statistical computations by using sets of data from a large, complex database. According to the design specification, the component performs a full set of calculations in not more than 5 seconds. Currently, the component takes more than 20 seconds to perform the required calculations. The project is almost complete and you must resolve the performance issues quickly. You need to identify the major processing performance issues in the component.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)