PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You are an enterprise application developer for Woodgrove Bank. You are creating an application
to manage different loan types. All loan types share a common implementation for interacting with
the financial systems of Woodgrove. Each loan type must implement its own rules for calculating interest. In the first version of the application, you must support car loans and house loans. You need to develop an architecture for the different loan types within your application. What should you do?

Which code segment should you use?

You create a Web Form. You add the following CreateUserWizard server control to the Web Form.

<asp:CreateUserWizard runat=”server” ID=”CU1″ FinishCompleteButtonText=”Continue”>
<WizardSteps>
<asp:CreateUserWizardStep ID=”CWS1″ Runat=”server” Title=”New Account”/>
<asp:WizardStep ID=”CWS2″ Title=”More Info” StepType=”Step”>
Given Name:<asp:TextBox runat=”server” ID=”txtGivenName” /> Last Surname:<asp:TextBox runat=”server” ID=”txtSurname” />
</asp:WizardStep>
<asp:CompleteWizardStep ID=”CWS3″ Runat=”server” Title=”Complete”/>
</WizardSteps>
</asp:CreateUserWizard>

You need to write code that redirects users to the first page of the wizard after they click the Continue button on the last page.
Which code segment should you use?

What should you do?

You are an enterprise application developer. You create a component that executes queries against Microsoft SQL Server. The queries are executed inside the scope of a transaction. The transaction is started by using the SqlTransaction object. The code executes the query inside a Try block. You need to create an exception handling mechanism that rolls back the transaction under any error condition and notifies the caller of the error. What should you do?

Which code segment should you insert at line 10?

You are creating a Microsoft Office SharePoint Server 2007 site. You create a Microsoft WinForms application to enter information about a user.

You write the following code segment. (Line numbers are included for reference only.)

01 static void AddUser (string[] user_name )
02 {
03 using (SPSite site =
04 new SPSite(“http://sitename”))
05 {
06 ServerContext context =
07 ServerContext.GetContext(site);
08 UserProfileManager profileManager =
09 new UserProfileManager(context);
10 …

11 }
12 }

You need to add a user profile to the profile store.

Which code segment should you insert at line 10?

Which code segment should you use?

You are developing an application that runs by using the credentials of the end user. Only users who are members of the Administrator group get permission to run the application. You write the following security code to protect sensitive data within the application.

bool isAdmin = false;
WindowsBuiltInRole role = WindowsBuiltInRole.Administrator; …
if (!isAdmin)
throw new Exception(“User not permitted”);

You need to add a code segment to this security code to ensure that the application throws an exception if a user is not a member of the Administrator group.
Which code segment should you use?

Which two actions should you perform?

You are an enterprise application developer. You are creating an application that will deploy an on-demand training program. The training is a combination of documents and video files that the user can ac cess from an internal server on the LAN. Users might access this application through their home computers when they are connected to the corporate network through a virtual private network (VPN). You need to design the video portion for the on-demand training program. You also need to ensure that users can view the videos without making modifications to their computer configuration. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)