PrepAway - Latest Free Exam Questions & Answers

Tag: 70-548

Exam 70-548: PRO: Designing and Developing Windows-Based Applications by Using the Microsoft .NET Framework

Which two tests should you choose?

You create Microsoft Windows-based applications. The sales department uses an application that accesses data from a local Microsoft Office Access database. To enable sales representatives to access the application when they are not in the office, you plan to install the application on a terminal server. The application will be accessed by 200 users simultaneously through a terminal services connection. You need to design an appropriate test strategy for the change. Which two tests should you choose? (Each correct answer presents part of the solution. Choose two.)

Which two factors should you ascertain from the tester?

You create Microsoft Windows-based applications. You create an application that requires users to be authenticated by a domain controller. The application contains a series of processor-intensive method calls that require different database connections. A bug is reported during testing. The bug description states that the application hangs during one of the processor-intensive calls more than 50 percent of the times when the method is executed. Your unit test for the same method was successful. You need to reproduce the bug. Which two factors should you ascertain from the tester? (Each correct answer presents part of the solution. Choose two.)

What should you test?

You create Microsoft Windows-based applications. You are testing a component named BankAccount. You write the following code segment for the BankAccount component.
(Line numbers are included for reference only.)

01 public class BankAccount {
02 private decimal balance;
03 public decimal Balance {
04 get{return this.balance;}
05 set{this.balance = value;}
06 }
07 public void Withdraw(decimal amount) {
08 if(!(amount > 0)) {
09 throw new Exception(“Invalid withdraw amount!”);
10 } else if (amount>this.balance) {
11 throw new Exception(“Insufficient balance”);
12 } else {
13 this.balance -= amount;
14 }
15 }
16 public void Deposit(decimal amount) {
17 if(!(amount > 0)) {
18 throw new Exception(“Invalid deposit amount!”);
19 } else {
20 this.balance += amount;
21 }
22 }
23 }

The test project executes a valid withdraw operation and a valid deposit operation. It also verifies the account balance. Your companys check-in policy requires that the primary code path is tested before check in. Full testing will be completed later. You need to establish the lowest acceptable code coverage metric. What should you test?

Which two components should you choose?

You create Microsoft Windows-based applications. You are creating a banking application. The application is composed of a Windows client, business logic components, a data access component, and a central database. You are responsible for the deployment of the business logic components that are used by the application. The deployment diagram is as shown in the following exhibit. (Refer to the Exhibit.) You need to analyze the dependencies of the Account component on other components in the application to ensure that the application functions properly. Which two components should you choose? (Each correct answer presents part of the solution. Choose two.)

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. (Refer to the Exhibit.) You need to evaluate the performance of the application based on the established requirements.
What should you conclude?

What should you recommend?

You create Microsoft Windows-based applications. You are responsible for evaluating the deployment of a product-pricing application. This application will be deployed on portable computers that are used by a team of sales personnel.
The application must meet the following requirements:

The application must run successfully on a dial-up connection.
Users need to run the application locally.
New features are added to the application on a monthly basis.

You need to provide a deployment solution that will ensure your users always have the latest version of the application when they connect to the corporate network. What should you recommend?

What should you conclude?

You create Microsoft Windows-based applications. You create a sales management application. The application stores sales data on a Microsoft SQL Server 2005 database that is maintained on a local server. The application retrieves data for analysis and permits users to make changes to the sales data. After the application is deployed, users report that the application takes too long to start. You run the application on your local computer to verify the performance and network usage. The performance chart is shown in the Performance exhibit and the network usage chart is shown in the Networking exhibit. (Refer to the Exhibit.) You need to analyze the application code and evaluate the problem. What should you conclude?

What should you do?

You create Microsoft Windows-based applications. You are creating an application that will connect to a Microsoft SQL Server 2005 database. You write the following code segment for a method contained in the application. (Line numbers are included for reference only.)

01 private SqlConnection cn;
02 public frmMain() {
03 InitializeComponent();
04 cn = new SqlConnection(“data source = localhost;initial Catalog = Accounting;integrated security = true”);
05 }

In the production environment, the database will be stored by a server on the network. You need to eliminate the requirement to recompile the application when you deploy it to the production environment. You want to achieve this by using minimum amount of programming effort. What should you do?

What should you do?

You create Microsoft Windows-based applications. You are changing an application to manage the daily activities of doctors and nurses in a hospital. The application will run on a single machine at the hospital front desk. The application will run 24 hours a day, seven days a week. Initial testing shows that the application consumes a lot of resources and that it runs out of memory intermittently. You want to change the application so that an alert is sent when memory usage is nearing the point of failure. An external application will be used for sending the alert. You need to decide what monitoring mechanism to use. You also need to ensure that the least amount of changes is introduced in the application. What should you do?

What should you do?

You create Microsoft Windows-based applications. You are creating a method. Your applications will call the method multiple times. You write the following lines of code for the method.

public string BuildSQL(string strFields, string strTable, string strFilterId) { string sqlInstruction = “SELECT “;
sqlInstruction += strFields;
sqlInstruction += ” FROM “;
sqlInstruction += strTable;
sqlInstruction += ” WHERE id =”;
sqlInstruction += strFilterid;
return sqlInstruction;
}

The method generates performance issues. You need to minimize the performance issues that the multiple string concatenations generate. What should you do?


Page 4 of 9« First...23456...Last »