1.
You create Web-based client applications. You are reviewing a Web application page that populates a list of all employees of your company. You analyze code and find that the Web application page does not prevent exceptions from traveling to the browser. You need to ensure that the Web application page intercepts exceptions and presents an error message to the browser. What change should you suggest?
2.
You create Web-based client applications. You are creating a Web site that displays product information for your company. The application must meet the following requirements: Support at least 20 concurrent users. Consume less than 40 percent of the CPU time during peak usage. Process at least five requests per second during peak usage, which is estimated to be between 20 and 30 users. A Web test is created to verify the requirements by recording how a regular user would interact with the site. Then, based on the Web test, a load test is created. The load test simulates 30 users who execute the Web test simultaneously. You need to decide whether the current strategy is enough to verify the requirements, and recommend changes. What should you recommend?
3.
You create Web-based applications. You are creating an Internet banking application. You write the following lines of code to represent a method in your application. (Line numbers are included for reference only.) 01 public void Transfer(decimal amount, BankAccount account) 02 { 03 if (!(amount > 0)) 04 throw new Exception("Invalid deposit amount!"); 05 else 06 { 07 this.Withdraw(amount); 08 account.Deposit(amount); 09 } 10 } 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 TransferTest() 03 { 05 BankAccount target = new BankAccount(); 06 BankAccount transferTo = new BankAccount(); 07 target.Deposit(500); 08 target.Transfer(100,transferTo); 09 Assert.Inconclusive("A method that does not return a value cannot be verified."); 10 } You need to change the test method to return a conclusive result. Which line of code should replace the code on line 09 of the unit test?
4.
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?
5.
You create Web-based client applications. You are creating an online reporting application that must generate inventory restocking reports within 34 seconds. In the development environment, during a unit test, generation of the month-end report took 42 seconds. You need to recommend what action must be taken to validate the test results. What should you recommend?
6.
You create Web-based client applications. You create an application that is used as a portal. The portal uses a set of custom controls that expose different functionalities. The set of custom controls includes one control each for the following three tasks: Track sales Track inventory Permit access to the corporate e-mail of the company The portal must permit users to select the controls that they need to display on the basis of a predefined list. The design team proposes the following steps to meet the requirement: Create the custom controls as Web parts. Create a Web part zone page that has two Web part controls and a catalog part control. Add the sales Web part control to the Web part zone. You need to evaluate whether the solution meets the requirements. What should you conclude?
7.
You create Web-based client applications. You are creating a Web control that includes data entry fields. The Web control also includes data validation code. The data validation code verifies whether the user has entered a valid date and a valid postal code in a text box. You are writing the code within the Web control to handle the invalid data. The Web control must work on as many browsers as possible. You need to design an appropriate feedback technique. What should you do?
8.
You create Web-based client applications. You are creating a content management system (CMS). You intend to sell CMS to your customers. It is important that customers customize the appearance and behavior of the CMS installation because the system will be used for external Web sites. However, your customers are not programmers. The customers will not be able to modify complicated source code to customize the appearance and behavior of their Web sites. You need to create the system in such a way that customers can modify the appearance and behavior of their Web sites by editing the minimum number of files, ideally one or two. Which strategy should you use?
9.
You create Web-based client applications. You are creating an ASP.NET intranet site. The site permits individual departments to post content without involving the Central Information Technology resources. The site also permits Central Information Technology to maintain control over the intranet as a whole. Each department wants complete control over the appearance and behavior of their departmental content. However, Information Technology directives require every page on the intranet to maintain a consistent appearance and behavior. You need to develop the Web page on the intranet site so that it meets the requirements. What should you do?
10.
You create Web-based client applications. You are creating a user-assistance mechanism for a Web form. The Web form serves as a multilevel wizard for clients to set up a new inventory for items. The user-assistance mechanism must meet the following requirements: Enable entry-level users to understand every step of the multilevel wizard process. Ensure that users complete the multilevel wizard on their first try. You need to select the appropriate user-assistance mechanism to meet the outlined requirements. What should you do?