PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You are deploying a Microsoft Office SharePoint Server 2007 hierarch of sites from a development environment to a staging environment on the same server farm. The development site hierarchy contains a corporate intranet site and a departmental site. Each departmental site contains subsites. You need to re-create the hierarchy of the development sites in the staging environment.

What should you do?

What should you test?

You create Microsoft Windows-based applications. You are testing a component named BankAccount. You write the following code segment for the BankAccount component.
(Line numbers are included for reference only.)

01 public class BankAccount {
02 private decimal balance;
03 public decimal Balance {
04 get{return this.balance;}
05 set{this.balance = value;}
06 }
07 public void Withdraw(decimal amount) {
08 if(!(amount > 0)) {
09 throw new Exception(“Invalid withdraw amount!”);
10 } else if (amount>this.balance) {
11 throw new Exception(“Insufficient balance”);
12 } else {
13 this.balance -= amount;
14 }
15 }
16 public void Deposit(decimal amount) {
17 if(!(amount > 0)) {
18 throw new Exception(“Invalid deposit amount!”);
19 } else {
20 this.balance += amount;
21 }
22 }
23 }

The test project executes a valid withdraw operation and a valid deposit operation. It also verifies the account balance. Your companys check-in policy requires that the primary code path is tested before check in. Full testing will be completed later. You need to establish the lowest acceptable code coverage metric. What should you test?

What should you do?

You create Web-based client applications. You are creating a Web page that permits a user to enter information to apply for a loan. The amount that the user is permitted to request depends upon the type of the loan and the term of the loan.

The Web page must perform the following tasks:

Ensure that the user enters a valid loan amount.
Prevent unnecessary trips to the server.

You need to implement an appropriate validation strategy for the application. What should you do?

Which two components should you choose?

You create Microsoft Windows-based applications. You are creating a banking application. The application is composed of a Windows client, business logic components, a data access component, and a central database. You are responsible for the deployment of the business logic components that are used by the application. The deployment diagram is as shown in the following exhibit. (Refer to the Exhibit.) You need to analyze the dependencies of the Account component on other components in the application to ensure that the application functions properly. Which two components should you choose? (Each correct answer presents part of the solution. Choose two.)