PrepAway - Latest Free Exam Questions & Answers

Category: 70-552

Exam 70-552: UPGRADE: MCAD Skills to MCPD Windows Developer by Using the Microsoft .NET Framework

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?

Which two aspects should you consider modifying?

You create Microsoft Windows-based applications. You are creating a sales management application for your company. The application will be used by 250 users on the companys network. In the future, the company will be expanding the user base to include at least 1,000 more users. The application will be stored locally on every computer. The application uses a set of assemblies that are installed in the global assembly cache for business rules. The application retrieves data from a Microsoft SQL Server 2005 database by using a set of methods from a Web service. The SQL Server 2005 database is hosted on a local server. The Web service is maintained at a local IIS 6.0 Server. You need to evaluate which aspects of the physical design can be modified to accommodate more users.
Which two aspects should you consider modifying? (Each 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. (Click the Exhibit button.) You need to evaluate the performance of the application based on the established requirements.
What should you conclude?

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. (Click the Exhibit button.) You need to analyze the application code and evaluate the problem. What should you conclude?

should you conclude?

You create Microsoft Windows-based applications. You are creating a sales management application. The application will consume Web services to retrieve and save data to a database server. These Web services will be exposed to a partner extranet so that partners can write applications that will access the same data. The deployment diagram for the entire solution is as shown in the following exhibit. (Click the Exhibit button.) After deploying the solution, local users and partners report that they are not able to retrieve any data. You find that the client computers are able to access Web applications and Web services hosted by the Web server. You also find that the local applications are able to access other databases on the database server. You need to troubleshoot the issue. 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 do?

You create Microsoft Windows-based applications. You create an application that accesses data on a Microsoft SQL Server 2005 database. You write the following code segment. (Line numbers are included for reference only.)

01 private void LoadData()
02 {
04 cn.Open();
05 daProducts.Fill(ds);
06 daCategories.Fill(ds);
07 cn.Close();
09 }

The cn variable points to a SqlConnection object. The SqlConnection object will be opened almost every time this code segment executes. You need to complete this code segment to ensure that the application continues to run even if the SqlConnection object is open. You also need to ensure that the performance remains unaffected.
What should you do?

What should you do?

You create Microsoft Windows-based applications. You are creating an application that will monitor sales data.

The application must meet the following requirements:

Users must be able to customize display settings and the amount of data to monitor. Users must be able to log on to any computer on the network to use the application. User settings must be retrieved based on the logged-on user from any computer on the network.

You need to decide where to store the user settings. What should you do?

Which component members should you test?

You create Microsoft Windows-based applications. Two of your Windows-based applications require the use of graphical progress indicators. These indicators are based on bitmap files. Such a component is not available in the .NET Framework.

To facilitate the search for a component, you identify the following requirements:

Component exposes a property to set a bitmap file that is used for the progress bar. Component permits the use of at least two types of progress bars. These progress bars are named percent progress and numeric progress.
Component exposes a method to increment the progress bar.

You find a component that fulfills all the requirements. You create a new component that extends the original component and overrides the Increment method. The Windows-based applications might use either the original component or the extended component. You write a test project to test the component. You need to ensure that all the requirements are met. You want to achieve this goal by using the minimum amount of programming effort.
Which component members should you test?

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 7 of 12« First...56789...Last »