REAL QUESTIONS SUBMIT MATERIAL ADVERTISE

Microsoft

Cisco

Oracle

Citrix

CIW

CompTia

CWNA

Apple

Adobe

Sun

HP

Legato

Exin

Filemaker

Brocade

Ericsson

TIA

Veritas

ISEB

SCP

IISFA

ISM

OMG

Apc

Mile2

Foundry

Huawei

McData

Symantec

TeraData

RedHat

 

 
 
Click on name of dumper to view the dump
 
Josph
 
 

Braindumps of 70-541
Microsoft Windows SharePoint Services 3.0 - Application Development

 

Exam Questions, Answers, Braindumps (70-541)
Helo! passed, uses Study guides: examcheets and course manual. Here under are is my dumps.



Q:1
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?
A. < recurrence > < rule > < firstDayOfWeek > su < /firstDayOfWeek > < weekly mo='TRUE' weekFrequency='1' / > < repeatInstances > 5 < /repeatInstances > < /rule > < /recurrence >
B. < recurrence > < rule > < firstDayOfWeek > su < /firstDayOfWeek > < weekly mo='TRUE' weekFrequency='5' / > < /rule > < /recurrence >
C. < recurrence > < rule > < firstDayOfWeek > su < /firstDayOfWeek > < weekly mo='TRUE' weekFrequency='5' / > < repeatInstances > 5 < /repeatInstances > < /rule > < /recurrence >
D. < recurrence > < rule > < firstDayOfWeek > su < /firstDayOfWeek > < weekly tu='TRUE' weekFrequency='1' / > < repeatInstances > 5 < /repeatInstances > < /rule > < /recurrence >
Ans: A


Q:2
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?
A. Dim site As SPWeb = SPControl.GetContextWeb(context)
Dim users As SPUserCollection = site.Users
For Each user As SPUser In users
Dim alerts As SPAlertCollection = user.Alerts
For Each alert As SPAlert In alerts
alerts.Delete(alert.ID)
Next
Next
B. Dim site As SPWeb = SPControl.GetContextWeb(context)
Dim users As SPUserCollection = site.Users
For Each user As SPUser In users
Dim alerts As SPAlertCollection = user.Alerts
For Each alert As SPAlert In alerts
If alert.AlertType = SPAlertType. List Then
alerts.Delete(alert.ID)
End If
Next
Next
C. Dim site As SPWeb = SPControl.GetContextWeb(context)
Dim users As SPUserCollection = site.Users
For Each user As SPUser In users
Dim alerts As SPAlertCollection = user.Alerts
For Each alert As SPAlert In alerts
If alert.AlertType = SPAlertType.Item Then
alerts.Delete(alert.ID)
End If
Next
Next
D. .Dim site As SPWeb = SPControl.GetContextWeb(context)
Dim users As SPUserCollection = site.Users
For Each us er As SPUser In users
Dim alerts As SPAlertCollection = user.Alerts
For Each alert As SPAlert In alerts
If alert.Title = "List" Then
alerts.Delete(alert.ID)
End If
Next
Next
Ans: B


Q:3
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?
A. Dim query As SPQuery = New SPQuery
query.Query = "<Where><Leq><FieldRef Name='Stock'/><Value
Type='Number'>100</Value></Leq></Where>"
Dim results As SPListItemCollection = list.GetItems(query)
B. Dim query As SPQuery = New SPQuery
query.Query = "<Where><Leq><FieldRef Name='Stock'/><Value _
Type='Number'>100</Value></Leq/Where>"
Dim results As SPListItemCollection = list.GetChanges(query)
C. Dim query As SPQuery = New SPQuery
query.Query = "<Where><Lt><FieldRef Name='Stock'/><Value _
Type='Number'>100</Value></Lt></Where>"
Dim results As SPListItemCollection = list.GetItems(query)
D. Dim query As SPQuery = New SPQuery
query.Query = "<Where><Lt><FieldRef Name='Stock'/><Value _
Type='Number'>100</Value></Lt></Where>"
Dim results As SPListItemCollection = list.GetChanges(query)
Ans: C


Q:4
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?
A. For Each folder As SPFolder In docLib.Folders
folder.MoveTo ( fileShare ) Next
B. For Each item As SPListItem In docLib.Items
Dim targetPath As String = Path.Combine ( fileShare , item.File.Name )
item.File.MoveTo ( targetPath ) Next
C. For Each item As SPListItem In docLib.Items
If item.File.Exists Then Dim targetPath As String = Path.Combine ( fileShare , item.File.Name )
item.File.MoveTo ( targetPath )
End If
Next
D. For Each item As SPListItem In docLib.Items
Dim targetPath As String = Path.Combine ( fileShare , item.File.Name )
' Using
Dim stream As FileStream = _ New FileStream ( targetPath , FileMode.Create )
Try
stream.Write ( item.File.OpenBinary (), 0, _ CType ( item.File.Length , Integer))
Finally
CType (stream, IDisposable ).Dispose()
End Try
item.Delete ()
Next.
Ans: D


Q:5
You create a Microsoft Windows SharePoint Services application. A SharePoint site has a list named MyList. You write the following code segment. (Line numbers are included for reference only.)
01 Dim site As SPWeb = SPControl.GetContextWeb(context)
02 Dim list As SPList = site.Lists("MyList")
03 ...
You need to bind the list to a DataGrid control. You also need to ensure that all the fields in the list are available in the DataTable object.
Which code segment should you insert at line 03?
A. Dim listItems As SPListItemCollection = list.Items
Dim table As DataTable = listItems.GetDataTable()
B. Dim listItems As SPListItemCollection = list.Items
For Each item As SPListItem In listItems
item.Properties("Visible") = True
Next
Dim table As DataTable = listItems.GetDataTable()
C. Dim listItems As SPListItemCollection = list.Items
Dim table As DataTable = New DataTable()
For Each item A s SPListItem In listItems
Dim col As DataColumn = New DataColumn(item.Name)
col.ExtendedProperties("Visible") = True
table.Columns.Add(col)
Next
D. Dim dataViewGuid As Guid = list.Views("DataView").ID
Dim srcView As SPView = list.GetView(dataViewGuid)
Dim viewFields As SPViewFieldCollection = srcView.ViewFields
Dim listItems As SPListItemCollection = list.GetItems(srcView)
Dim table As DataTable = listItems.GetDataTable()
Ans: A


Q:6
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?
A. Create an instance of the FullTextSqlQuery class and pass a SQL string to the QueryText property.
B. Create an instance of the KeywordQuery class and set the QueryText property to the value AssignedTo.
C. Create an instance of the SPQuery class and pass a Collaborative Application Markup Language (CAML) string to the query property. Iterate through the task lists on the site and pass the query property to the SPList.GetItems method.
D. Create an instance of the SPQuery class and pass a Collaborative Application Markup Language (CAML) string to the query property. Iterate through the task lists on the site and pass the SPQuery object to the SPList.GetItems method.
Ans: D

70-541


 

 

Braindumps Real exam questions and verified answers - 100% passing guarantee - cheap prices.

 

Free brain dumps Braindumps, notes, books for free

 

Exams.ws - Instant download real exam questions - Passing guarantee.

 
 
 
 
 

CheckPoint

Linux

Novell

DB/2

BEA

Network Appliance

EC-Council