PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you insert at line 07?

You create a TimeTracking feature and install the feature on a Microsoft Windows SharePoint Services site.

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

01 Public Class TimeTrackerEventReceiver Inherits SPFeatureReceiver
02
03 Public Sub NotifyUser(ByVal user As SPUser, ByVal featureName As String)
04
05 co de omitted
06 End Sub
07 …
08

You need to ensure that the site administrator is notified only when the TimeTracking feature is activated.

Which code segment should you insert at line 07?

What should you do?

You create Microsoft Windows-based applications. You are creating an application that will connect to a Microsoft SQL Server 2005 database. You write the following code segment for a method contained in the application. (Line numbers are included for reference only.)

01 private SqlConnection cn;
02 public frmMain() {
03 InitializeComponent();
04 cn = new SqlConnection(“data source = localhost;initial Catalog = Accounting;integrated security = true”);
05 }

In the production environment, the database will be stored by a server on the network. You need to eliminate the requirement to recompile the application when you deploy it to the production environment. You want to achieve this by using minimum amount of programming effort. What should you do?

What should you conclude?

You create Web-based applications. You are creating an application for purchase order management. The application is composed of a Web client, business logic components, a Data Access Component (DAC) Web service, and a central database.

The application design meets the following specifications:
The Web-based client application is used for end-user interaction. The Web-based client application uses two business logic components named Order and Customer.
Each customer can have multiple orders.
Each order belongs to a single customer.
The business logic components use a DAC Web service.
The business logic components make data available to the Web-based client application.

You receive a deployment diagram as shown in the following exhibit. (Refer to the Exhibit.) You need to evaluate the diagram to ensure that it complies with the specifications. What should you conclude?

What should you do?

You are creating a Microsoft Windows SharePoint Services application.

The application has the following two Web Parts:

* Web Part A, which implements the IRowProvider interface
* Web Part B, which implements the IParametersInConsumer interface

You need to ensure that Web Part B can receive data from Web Part A.

What should you do?