1.
You create a Microsoft Windows SharePoint Services site that contains a document library.
You need to check out the current version of each document in the root folder of the document library.
Which code segment should you use?
2.
You have a Microsoft Windows SharePoint Services development server.
You create a Web Part that uses a strong-named assembly. You edit the Web.config file to add the Web Part as a fully trusted Web Part.
When you test the Web Part, an exception occurs. The exception states that the assembly security permission grant set is incompatible with the app domain.
You need to prevent the occurrence of the exception when you test the Web Part.
What should you do?
3.
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?
4.
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.)
5.
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?
6.
You create a site definition named HR Team Site and a list definition named HR Roles.
The HR Team Site definition is configured in the following manner.
< Configuration ID="13" Title="HR Team Site" Type="0"/ >
The HR Roles list definition is configured in the following manner.
< ListTemplate Path="STS" Name=" hrteam "
DisplayName ="HR Roles" Type="112" BaseType ="1" / >
You need to ensure that the HR Team Site definition is configured to use the HR Roles list definition.
Which XML fragment should you use?
7.
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?
8.
You create a Microsoft Windows SharePoint Services site that contains task lists.
You are creating a custom Search Web Part that displays the number of unassigned tasks on the site.
You need to retrieve a list of task items from within the Web Part for which the assignment field is empty.
What should you do?
9.
You are creating a Microsoft Windows SharePoint Services site.
You need to add a new site column of type Choice to the site.
Which code segment should you use?
10.
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?