1.
You are developing an assembly named ABC.Employee.dll for the human resources (HR) department site of your company. The assembly has the following properties:
A namespace named ABC
PublicKeyToken def148956c61a16b
Version 1.0.0.0
The assembly also contains two Web Part classes named Benefits and ContactInformation. You may add additional Web Parts before you release the assembly.
You need to ensure that all the Web Parts in the assembly are trusted.
Which XML fragment should you use?
2.
You create a new site definition from an existing site definition. You copy the directory of the existing site definition to a new directory in the correct folder. You use a different name for the new directory.
You need to ensure that the new site definition is available on a Microsoft Windows SharePoint Services site.
What should you do?
3.
You create a Microsoft Windows SharePoint Services solution. You need to deploy the solution files. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)
4.
You create a new feature that contains shared resources. The new feature will be used within a site definition.
You are manually deploying the feature on a Microsoft Windows SharePoint Services site.
You need to create a folder for the feature.
Which path should you use?
5.
You create a Microsoft Windows SharePoint Services site.
You need to update the first item in a SharePoint list named MyList without triggering any alerts.
Which code segment should you use?
6.
You create a Microsoft Windows SharePoint Services site. You add a recurring event to an Events list by using the RecurrenceData property of the SPListItem class.
You need to ensure that the event occurs once every Monday for five consecutive weeks.
Which XML fragment should you use?
7.
You are writing a console application that displays information about attachments for list items.
You need to display the name and length of each attachment for an item.
Which code segment should you use?
8.
You create an application for a Microsoft Windows SharePoint Services site.
You need to delete all list-scoped alerts that are assigned to a user.
Which code segment should you use?
9.
You create a Microsoft Windows SharePoint Services list named Books. The list has a column named Stock that stores the total number of available books.
You write the following code segment. (Line numbers are included for reference only.)
01 Protected Overloads Overrides Sub CreateChildControls()
02 Dim myWeb As SPWeb = SPControl.GetContextWeb(Context)
03 Dim myList As SPList = my Web .Lists("Books")
04 ...
05 Dim myGrid As DataGrid = New DataGrid
06 myGrid.DataSource = results
07 myGrid.DataBind
08 Me.Controls.Add(myGrid)
09 End Sub
You need to render a list of books for which the value in the Stock column is less than 100.
Which code segment should you insert at line 04?
10.
You are creating a Microsoft Windows SharePoint Services application.
You write the following code segment. (Line numbers are included for reference only.)
01 Public Sub DownloadDocument ( ByVal web As SPWeb )
02 Dim docLib As SPDocumentLibrary = _
CType ( web.Lists ("shared Documents"), SPDocumentLibrary )
03 Const fil eShare As String = "C:\Download"
04 ...
05 End Sub
You need to move each document to the C:\Download folder. You also need to remove each document from the document library.
Which code segment should you insert at line 04?