PrepAway - Latest Free Exam Questions & Answers

Category: 70-548

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

What should you conclude?

You create Microsoft Windows-based applications. You are creating an application that runs statistical sales models. The application will be used by 400 users on the local network. After the application is deployed, users report that the application stops responding. The application takes more than 10 minutes to resume to normal when a specific action is performed. The performance chart is shown in the Performance exhibit, and the task list of the application that is running on a sample computer is shown in the Processes exhibit. (Refer to the Exhibit.) You need to evaluate the problem by analyzing the monitored data. What should you conclude?

What should you do?

You create Microsoft Windows-based applications. You create a customer-support application for a technical support organization. The customer-support application accepts phone numbers. While running a report, you find that the phone numbers displayed do not follow a single format. In addition, there are instances of missing digits and missing area codes. You need to ensure that the phone numbers are entered in the format (###) ###-####. You want to achieve this goal by using the minimal amount of code. What should you do?

Which user interface layout control should you select?

You create Microsoft Windows-based applications. You are developing an application for the sales department.

The application displays information under the following sections:

Customer Name
Shipping Address
Billing Address
Contact Numbers
E-mail Addresses

You need to design a user interface that permits the user to display one section at a time. You want to achieve this goal by using the minimal amount of code. Which user interface layout control should you select?

What should you do?

You create Microsoft Windows-based applications. You design a Windows Forms application that routes incidents to the most appropriate technical support representative. The application displays information in a Multiple Document Interface (MDI). A standard menu exists at the top of the MDI parent form. Toolbar containers provide functionality to the child forms. Users of the application are connected to the network locally and remotely. Five of the remote users have either visual or auditory impairments. Currently, a default beep alerts the users when a new support incident is assigned to them. You review the design and discover that the application fails to provide adequate
accessibility functionality. You need to provide an application status feedback technique that is appropriate for all users. What should you do?

Which action should you perform to achieve this goal?

You create Microsoft Windows-based applications. You are designing a reusable composite control for a customer service application. The composite control contains three TextBox controls. The first TextBox control is used for the customers account number. The second TextBox control is used for the customers phone number. The third TextBox control is used to hold the last four digits of the customers social security number. The composite control is used to retrieve a customers insurance data. You need to ensure that data is entered in the valid format for all the three TextBox controls. Which action should you perform to achieve this goal?

Which solution should you use?

You create Microsoft Windows-based applications. You are designing an
application that will be deployed to employees in your company. The company requires that all internal applications are branded with the corporate logo and a copyright notice. You need to ensure that all forms in the application contain the appropriate branding and copyright notice. Your solution must be extensible, maintainable, and require minimum effort to lay out. Which solution should you use?

Which control should you choose?

You create Microsoft Windows-based applications. Your company network runs a Web-based application that permits managers to edit data in the employee database by using a Web form. You need to redesign the Web-based application as a rich-client application.

The redesigned user interface must meet the following criteria:

The data entry form dynamically creates the input controls with the corresponding labels. The data entry fields accept inputs of different lengths and the input controls acquire size accordingly. The user experience is similar to that of the previous Web-based application. Dynamically created input controls and labels must always align properly, even if the form is resized. You need to identify the control that can be used to minimize the user interface code complexity. Which control should you choose?

Which line of code should you use to replace the code on line 06?

You create Microsoft Windows-based applications. You review code for an application that is developed for a bank. You need to test a method named Deposit in one of the application components. The following code segment represents the Deposit method. (Line numbers are included for reference only.)
01 public void Deposit(decimal amount) {
03 if (!(amount > 0)) {
04 throw new Exception(“Invalid deposit amount!”);
05 } else {
06 this.balance += amount;
07 }
08 }

You use the Microsoft Visual Studio 2005 test feature to automatically generate the following unit test.
(Line numbers are included for reference only.)

01 [TestMethod()]
02 public void DepositTest() {
03 BankAccount target = new BankAccount(); //balance will be ZERO
04 decimal amount = 100;
05 target.Deposit(amount);
06 Assert.Inconclusive
(“A method that does not return a value cannot be verified.”); 07 }

You need to change the test method to return a conclusive result. Which line of code should you use to replace the code on line 06?

Which two actions should you recommend?

You create Microsoft Windows-based applications. You receive the following code segment to review. (Line numbers are included for reference only.) 01 public partial class frmReceivables : Form
02 {
03 private DataSet ds;
04 public frmReceivables()
05 {
06 InitializeComponent();
07 }
08 private void frmReceivables(object sender, EventArgs e) 09 {
10 SqlConnection cn = new SqlConnection(strConnectionString); 11 SqlDataAdapter daInvoices = new SqlDataAdapter(“SELECT * FROM Invoices”, cn); 12 SqlDataAdapter daCustomers = new SqlDataAdapter(“SELECT * FROM Customers”, cn); 13 ds = new DataSet(“Receivables”);
14 daInvoices.Fill(ds);
15 daCustomers.Fill(ds);
16 }
17 }

The strConnectionString variable is pre-populated from the application configuration file. Query statements will remain unchanged throughout the life cycle of the application. Connection pooling is not being used. This code segment accesses a Microsoft SQL Server 2000 database. The ds dataset is bound to a data grid view so that users can view and update data in the database. The code currently compiles correctly and works as intended. You need to enhance performance and reliability for this code. Which two actions should you recommend? (Each correct answer presents part of the solution. Choose two.)

What should you test?

You create Microsoft Windows-based applications. You are creating an application that consumes both an internally developed Web service and an externally developed Web service. The application uses only some of the methods that both the Web services expose. You need to design an integration testing strategy for the application. You want to achieve this goal by using the minimum amount of programming effort. What should you test?


Page 3 of 912345...Last »