You create Microsoft Windows-based client applications. You are designing a smart client application for warehouse packaging clerks. The application must permit the clerks to add and delete items in the packaging
invoices they create at their workstations. Each workstation has only a keyboard and a hand-held barcode scanner for input. You need to design the user interface for the application such that the clerks can add and delete items with minimum effort. What should you do?
You create Microsoft Windows-based applications. You are enhancing an application for a medical transcription service. Users need to view a long list of medical codes and descriptions. The users displays are set at 800 x
600 resolution. The existing application requires the user to regularly obtain printouts that contain pages of medical codes. These medical codes frequently change. The application must be updated to assist users in
entering medical codes into a database. The application must enable the user to view and enter medical codes and descriptions on screen at the same time. You need to evaluate the user environment and recommend a design that best meets the requirements of the users. What should you recommend?
You create Microsoft Windows-based applications. You are developing an application that will be used by stock traders. The project scope contains the following requirements:
The application must permit users to set thresholds for minimum and maximum values for different stocks.
The application must alert the user when stock prices reach the pre-defined thresholds. The application must permit the user to either buy or sell stock and specify the quantity of stock to trade.
The application must permit multiple alerts to be displayed simultaneously.
You need to decide how to implement the alert mechanism. What should you do?
You create Microsoft Windows-based applications. You create an application that loads bulk weather data into
a data warehouse for analysis. The application is used by data-entry technicians. One data-entry technician is
visually impaired. The data-entry technicians provide a large flat file as the source of the data, and they typically
minimize the application so that they can use other programs while the data is being loaded. The data entry
technicians must load as many data files as possible during the course of their work day. The user interface
contains a progress bar control that has a text label. The text label indicates the current percentage of
progress. You need to provide appropriate status feedback to the user by indicating that the process is
complete. Which two actions should you perform? (Each correct answer presents part of the solution. Choose
two.)
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?
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?
You create Microsoft Windows-based applications. You are designing an application that permits insurance agents to provide insurance quotes to prospective customers. The application permits insurance agents to
survey the customer and enter the customers responses into the application. Each customer response adjusts the computed level of risk for the customer depending on how the customer answers the question.
The application must meet the following requirements:
The application must continuously display a thermometer indicating the level of risk. The prospective customers risk must be updated after each question. The application must ensure that the user interacts with the thermometer component as little as possible.
You need to evaluate a user interface design for the thermometer component of the application. What should you do?
You create Microsoft Windows-based applications. You are designing a unit test for a form in an application.
You write the following code segment. (Line numbers are included for reference only.)
01 public partial class frmCalculation : Form {
02 public frmCalculation() {
03 InitializeComponent();
04 }
05 private void cmdFib_Click(object sender, EventArgs e) { 06 lblResult.Text = Fibonacci(int.Parse
(txtNumber.Text)).ToString(); 07 }
08 private void cmdFac_Click(object sender, EventArgs e) { 09 lblResult.Text = Factorial(int.Parse
(txtNumber.Text)).ToString(); 10 }
11 private int Fibonacci(int number) {
12 if (number < 3)
13 return 1;
14 else
15 return Fibonacci(number - 1) + Fibonacci(number - 2);
16 }
17 private int Factorial(int number) {
18 int total = 1;
19 for (int x = number; x > 1; x--)
20 total *= x;
21 return total;
22 }
23 }
You need to identify the methods that must be included for unit testing. Which methods should you choose?
You create Microsoft Windows-based applications. You are designing the integration test for an application.
You write the following lines of code. (Line numbers are included for reference only.) 01 private void cmdCompare_Click(object sender, EventArgs e) { 02 decimal flightFare, carRental, hotelPrice, travelCost; 03 flightFare = wsFlyHigh.GetBestFare(txtOrigin.Text, txtDest.Text, datDateOut, datDateBack); 04 cmdGetRentalPrice.Parameters.Add("@DAYS",SqlDbType.Int); 05 cmdGetRentalPrice.Parameters
[0].Value=int.Parse(txtDays.Text); 06 carRental = cmdGetRentalPrice.ExecuteScalar();
07 hotelPrice = bigDeal.GetHotelPrice(int.Parse(txtDays.Text)); 08 travelCost = flightFare + carRental + hotelPrice;
09 txtTravelCost.Text = travelCost.ToString("C");
10 }
You analyze the code and discover the following features: wsFlyHigh is a Web service that is hosted on a partners extranet. cmdGetRentalPrice runs a stored procedure on a corporate database server.
bigDeal is a COM component.
You need to create a report that lists the parts of the code to be considered during integration testing.
Which lines of code should you add to your report?
You create Microsoft Windows-based applications. You are designing a unit test class to test the functionality of a component named Calculator. The Calculator must function as a standard nonscientific calculator. A
developer on your team writes the following lines of code for the test class. (Line numbers are included for reference only.)
01 [TestClass()]
02 public class CalculatorTest {
03 private TestContext testContextInstance;
04 public TestContext TestContext {
05 get{return testContextInstance;}
06 set{testContextInstance = value;}
07 }
08 [TestMethod()]
09 public void AddTest() {
10 Calculator target = new Calculator();
11 Assert.AreEqual(target.Add(1,1),2);
12 target.Dispose();
13 }
14 [TestMethod()]
15 public void SubtractTest() {
16 Calculator target = new Calculator();
17 Assert.AreEqual(target.Subtract(10,2),8);
18 target.Dispose();
19 }
20 }
You need to ensure that appropriate assertions are tested. Which additional assertion should you test?