PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you recommend?

You create Microsoft Windows-based applications. You need to evaluate the design concept of an application.

The application must meet the following requirements:

The application relies on the operating system for authentication. The application minimizes the amount of data sent over the network when connecting to the database. The application exposes data access code so that the future Web-based and mobile applications can reuse them.
The application permits users to view and edit data contained in tables from a Microsoft SQL Server 2005 database.
The application controls access to the SQL Server 2005 database at the table level.

The design contains the following elements:

The SQL Server 2005 database uses the Windows Authentication mode. A database schema that grants rights to the users at the table level. A stored procedure in Transact-SQL that accesses the necessary data required by the application. A Web service that uses a pre-defined credential to access the database and run the stored procedures. A Microsoft Windows-based application that impersonates the logged-on user and calls the Web service to retrieve and update the data.
You need to evaluate the design and recommend appropriately.
What should you recommend?

What should you do?

You are an enterprise application developer. You plan to evaluate the performance of an ASP.NET application. You review a performance monitoring log. You notice that the ASP.NET Worker Process Restarts performance counter shows a consistent measure over several days. However, the performance counter spikes unexpectedly at irregular intervals. You need to provide the following information: An explanation for the performance spike.A plan to ensure that
the performance spike does not recur. What should you do?

Which code segment should you insert?

You create Microsoft Windows-based applications. You create a banking application that will be used by the account managers of the bank.

You identify a method to simulate the deposit functionality of a savings account. The method will calculate the final balance when monthly deposit, number of months, and quarterly rate are given. The application requirements state that the following criteria must be used to calculate the balance amount:

Apply the quarterly interest rate to the balance amount of the account every three months. Apply the quarterly interest rate before the monthly deposit is calculated for the third month.

You translate the outlined specification into pseudo code. You write the following lines of code. (Line numbers are included for reference only.)

Method

public static decimal SimulateSavings

Input parameters
int months
decimal monthlyPayment
decimal quarterlyRate

Pseudo code

01 Declare balance variable, initialize it to zero
03 Return balance

You need to insert the appropriate code in line 02. Which code segment should you insert?

What should you do?

You are an enterprise application developer. You are designing a component that will perform the following tasks: Read data from a transaction that accesses multiple data sources.Display a computed result to the user. The component contains the following routines: A routine that displays the returned dataA routine that retrieves the transacted data You want data to be displayed only when the results are complete. You need to design the component to use the threading architecture to optimize performance and to minimize the usage of resources. What should you do?

What should you conclude?

You create Microsoft Windows-based applications. You are creating a mathematics educational application. The application will be used to teach students about numeric series. One of the methods in the application is used to calculate a given member of the Fibonacci series. The method uses recursive calls to perform its calculation. The application calls the method synchronously, and only one instance of the application can be running at a given time. The application requirements state that the method must take less than 5 seconds to process when calculating any of the first 30 members of the Fibonacci series. You profile the application by using instrumentation. During profiling, you perform a call on the method that is used for calculating the 30th member of the Fibonacci series. The profiling report, which shows elapsed time in milliseconds, is shown in the exhibit. (Click the Exhibit button.) You need to evaluate the performance of the application based on the established requirements.
What should you conclude?

Which code fragment should you use?

You are an enterprise application developer. You create a component that has a method named IsPrinterLicensed. The method invokes a Web service named printLicensing. The Web service provides a method named checkLicense. You want to recieve the feedback from the Web service when the call to the Web service is completed. You write the following code segment. void pl_Completed(Object sender, printLicense.checkLicenseCompletedEventArgs args){ bool Result
= args.Result; // process result} You need to invoke the Web service asynchronously. You also need to ensure that the component is notified when the call to the Web service is completed.
Which code fragment should you use?