PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You create Microsoft Windows-based applications. You are designing an application that streams multimedia data. The application must have minimal impact on the network. The application will be used by Microsoft Windows XP Professional client computers and Microsoft Windows Server 2003 client computers. The media you need to use is stored on a file server in a nonproprietary raw video format and the files are unedited. You need to choose an appropriate design modification that requires the least amount of programming effort. What should you do?

Which lines are covered by the test?

You create Web-based client applications. You create a Web site that will be used to simulate different types of loans. You are writing a method to calculate the payment on a simple loan. You write the following lines of code for the method. (Comments are included for reference only.)

public static decimal Payment(decimal loanAmount, int period, decimal rate) { if (!(loanAmount > 0)||!(period > 1)||!(rate > 0)) { // Line A throw new Exception(“Invalid input!”); // Line B
} else {
return 0M; // Line C: return a calculated payment
}
}

public static decimal CheckBalance(ulong accountID) {
return 0M; // Line D: return calculated balance
}

You write the following code for the unit test.

[TestMethod()]
public void PaymentTest() {
decimal payment = Loan.Payment(100000,360,10); // Line E
Assert.AreEqual(payment, 877.57M); // Line F
}
You enable coverage testing for this unit test. You need to identify the coverage of your test. Which lines are covered by the test?

Which code segment should you insert at line 06?

You are creating a Virtual Earth 6.0 application. The application allows users to enter an address and view the corresponding mapped location. A Print Preview link appears next to the location. The link opens a pop-up window that contains the location information in a query string.

The map load in the pop-up window is defined by the following code segment. (Line numbers are included for reference only.)

01 var loc = … ;
02 var map = null;
03 function GetMap(){
04 map = new VEMap(‘PrintPreviewMap’);
05 map.LoadMap();
06 …
07 }

The variable named loc in the code segment is an object that contains the id, address, latitude, longitude, and zoom properties that are present in the query string.

You need to ensure that the pop-up window meets the following requirements:

It uses the properties in the query string to display the location.
It does not display map controls.

Which code segment should you insert at line 06?

Which action should you perform?

You create Microsoft Windows-based applications. You participate in the planning phase of an incident tracking tool for technical support analysts.

The incident tracking tool must meet the following requirements:

Technical support analysts must open multiple incidents simultaneously.
The application can run only one instance at a time.
Users must be able to adjust the order and layout of the incident screens.

You need to design an application user interface that meets these requirements with the minimum amount of code. Which action should you perform?