70-541VB Exam
- Exam Number/Code : 70-541VB
- Exam Name :
- Questions and Answers : 55 Q&As
- Update Time: 2011-09-21
- Price:
$ 119.00$ 69.00
Free 70-541VB Demo Download
Test4pass offers free demo for TS 70-541VB exam (). You can check out the interface, question quality and usability of our practice exams before you decide to buy it. We are the only one site can offer demo for almost all products.
Exam Description
It is well known that 70-541VB exam test is the hot exam of Microsoft certification. Test4pass offer you all the Q&A of the 70-541VB real test . It is the examination of the perfect combination and it will help you pass 70-541VB exam at the first time!
Why choose Test4pass 70-541VB braindumps
Quality and Value for the 70-541VB Exam
100% Guarantee to Pass Your 70-541VB Exam
Downloadable, Interactive 70-541VB Testing engines
Verified Answers Researched by Industry Experts
Drag and Drop questions as experienced in the Actual Exams
Practice Test Questions accompanied by exhibits
Our Practice Test Questions are backed by our 100% MONEY BACK GUARANTEE.
Microsoft TS 70-541VB exam braindumps questions and answers
¡¡
Exam : Microsoft 70-541(VB)
Title : TS:MS Windows SharePoint Srvcs 3.0 Application Development
1. 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?
A. Public Shared Sub DisplayAttachments(ByVal item As SPListItem)
For Each name As String In item.Attachments
Dim fullName As String = item.Attachments.UrlPrefix + name
Dim fi As FileInfo = New FileInfo(fullName)
Console.WriteLine("{0} has a length of {1}", fullName, fi.Length)
Next
End Sub
B. Public Shared Sub DisplayAttachments(ByVal item As SPListItem)
For Each name As String In item.Attachments
Dim spFile As SPFile = item.Web.GetFile(name)
Console.WriteLine("{0} has a length of {1}", name, spFile.Length)
Next
End Sub
C. Public Shared Sub DisplayAttachments(ByVal item As SPListItem)
For Each name As String In item.Attachments
Dim fullName As String = item.Attachments.UrlPrefix + name
Dim spFile As SPFile = item.Web.GetFile(fullName)
Console.WriteLine("{0} has a length of {1}", fullName, _
spFile.Length)
Next
End Sub
D. Public Shared Sub DisplayAttachments(ByVal item As SPListItem)
For Each name As String In item.Attachments
Dim fi As FileInfo = New FileInfo(name)
Console.WriteLine("{0} has a length of {1}", name, fi.Length)
Next
End Sub
Answer: C
2. 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?
A. < SafeControl
Assembly="ABC.Employee, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=def148956c61a16b"
Namespace="ABC.Employee"
TypeName="*"
Safe="True"
/ >
B. < SafeControl
Assembly="ABC.Employee, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=def148956c61a16b"
Namespace="ABC.Employee"
TypeName="Benefits, ContactInformation"
Safe="True"
/ >
C. < SafeControl
Assembly="ABC.Employee, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=def148956c61a16b"
Namespace="ABC"
TypeName="*"
Safe="True"
/ >
D. < SafeControl
Assembly="ABC.Employee, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=def148956c61a16b"
Namespace="ABC"
TypeName="Benefits, ContactInformation"
Safe="True"
/ >
Answer: C
3. 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.
Answer: D
4. 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
Answer: B
5. You create a Microsoft Windows SharePoint Services site.
You need to ensure that the Web Parts can access the object model of Windows SharePoint Services.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Create a custom policy file.
B. Create a publisher policy file and install it into the global assembly cache (GAC).
C. Change the trust level for the virtual server so that it references the custom policy file.
D. Edit the SafeControls section of the web.config file of the virtual server.
Answer: AC
6. You create a Microsoft Windows SharePoint Services site on a remote server. The site contains a records repository.
You create a Microsoft Windows Forms application that stores official documents in the records repository by using Records Repository Web Service.
You need to submit a document to the records repository.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Serialize the document to an XML string.
B. Impersonate a user with EditListItems permissions.
C. Create a byte array that contains the document content.
D. Declare an array of OfficialFileProperty objects to specify the metadata that is being submitted along with the document.
Answer: CD
7. A farm environment has multiple servers that run Microsoft Windows SharePoint Services. You create a new feature named myFeature.
You need to deploy and activate myFeature for the http: //www.contoso.local site.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)
A. Run the IISReset command on one server in the farm.
B. Run the IISReset command on each server in the farm.
C. Run the stsadm o activatefeature name myFeature url http: //www.contoso.local command on one server in the farm.
D. Run the stsadm o activatefeature name myFeature url http: //www.contoso.local command on each server in the farm.
E. Copy the feature files to the correct directory on one server in the farm. Run the stsadm o installfeature name myFeature command on that server.
F. Copy the feature files to the correct directory on each server in the farm. Run the stsadm o installfeature name myFeature command on each server in the farm.
Answer: BCF
8. 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?
A. Modify the Feature.xml file by changing the ID attribute of the Feature node to a unique value.
B. Modify the Onet.xml file of the new site definition by changing the FeatureId attribute of all the List nodes to unique values.
C. Modify the Onet.xml file of the new site definition by changing the ID attribute of the Configuration nodes to unique values.
D. Copy the WebTemp*.xml file for the existing site definition to a new name. In the Web.config file, add a new safe control entry for the new site definition. Run the IISRESET command.
E. Copy the WebTemp*.xml file for the existing site definition to a new name. In the new WebTemp*.xml file, change the ID attribute of the template node to a unique number. Run the IISRESET command.
Answer: E
9. 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?
A. Dim site As SPSite = SPControl.GetContextSite(context)
Dim destList As SPList = site.AllWebs(0).Lists(0)
Dim listItems As SPListItemCollection = destList.Items
Dim item As SPListItem = listItems(0)
item("Type") = "Important"
item("Assigned") = "No"
item.Up dateOverwriteVersion()
B. Dim site As SPSite = SPControl.GetContextSite(context)
Dim destList As SPList = site.AllWebs("MySite").Lists("MyList")
Dim listItems As SPListItemCollection = destList.Items
Dim item As SPListItem = listItems(0)
item("Type") = "Important"
item("Assigned") = "No"
item.Recycle()
C. Dim site As SPSite = SPControl.GetContextSite(context)
Dim destList As SPList = site.AllWebs("MySite").Lists("MyList")
Dim listItems As SPListItemCollection = destList.Items
Dim ite m As SPListItem = listItems(0)
item("Type") = "Important"
item("Assigned") = "No"
item.SystemUpdate()
D. Dim mySite As SPWeb = SPControl.GetContextWeb(context)
Dim listItems As SPListItemCollection = mySite.Lists("MyList").Items
Dim item As SPListItem = listItems.Add()
item("Type") = "Important"
item("Assigned") = "No"
item.Update
Answer: C
10. 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.)
A. Run the Stsadm.exe utility with the deploysolution operation.
B. Call the SPSolution.Deploy method from within custom code.
C. Install the solution assembly into the Global Assembly Cache (GAC).
D. Copy the solution assembly to the bin folder of the Windows SharePoint Services server.
Answer: AB
11. You are creating a Microsoft Windows SharePoint Services site. Windows SharePoint Services is located on the hard disk in the default IIS Web root folder.
A custom ASPX page is displayed on a SharePoint site. A user control named userinfo.ascx is also available.
You need to deploy the user control. You also need to display the control on the ASPX page.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Copy the userinfo.ascx file to C:InetPubwwwrootwebresourcesControlTemplates.
B. Copy the userinfo.ascx file to C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions12TemplateControlTemplates.
C. Add the following line to the ASPX page.
<% Reference Control = "~/_controltemplates/userinfo.ascx" %>
D. Add the following line to the ASPX page.
<% Reference Control ="~/webresources/ControlTemplates/userinfo.ascx" %>
Answer: BC
12. 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 >
Answer: A
13. 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)
Answer: C
14. 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?
A. 12Config
B. 12Resources
C. 12TemplateFeatures
D. 12TemplateSiteTemplates
Answer: C
Click Online chat to talk with us , get more informations about Microsoft TS 70-541VB practice exam study guides questions and answers
Test4pass 70-541VB Exam Features
Quality and Value for the 70-541VB Exam
Test4pass Practice Exams for Microsoft 70-541VB are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development.
100% Guarantee to Pass Your 70-541VB Exam
If you prepare for the exam using our Test4pass testing engine, we guarantee your success in the first attempt. If you do not pass the TS 70-541VB exam (ProCurve Secure WAN) on your first attempt we will give you a FULL REFUND of your purchasing fee AND send you another same value product for free.
Microsoft 70-541VB Downloadable, Printable Exams (in PDF format)
Our Exam 70-541VB Preparation Material provides you everything you will need to take your 70-541VB Exam. The 70-541VB Exam details are researched and produced by Professional Certification Experts who are constantly using industry experience to produce precise, and logical. You may get questions from different web sites or books, but logic is the key. Our Product will help you not only pass in the first try, but also save your valuable time.
70-541VB Downloadable, Interactive Testing engines
We are all well aware that a major problem in the IT industry is that there is a lack of quality study materials. Our Exam Preparation Material provides you everything you will need to take a certification examination. Like actual certification exams, our Practice Tests are in multiple-choice (MCQs) Our Microsoft 70-541VB Exam will provide you with free 70-541VB dumps questions with verified answers that reflect the actual exam. These questions and answers provide you with the experience of taking the actual test. High quality and Value for the 70-541VB Exam:100% Guarantee to Pass Your TS exam and get your TS Certification.
Test4pass 70-541VB examTest4pass 70-541VB pdf exam
Test4pass 70-541VB braindumps
Test4pass 70-541VB study guides
Test4pass 70-541VB trainning materials
Test4pass 70-541VB simulations
Test4pass 70-541VB testing engine
Test4pass 70-541VB vce
Test4pass 70-541VB torrent
Test4pass 70-541VB dumps
free download 70-541VB
Test4pass 70-541VB practice exam
Test4pass 70-541VB preparation files
Test4pass 70-541VB questions
Test4pass 70-541VB answers
http://www.test4pass.com/70-541VB-exam.html The safer.easier way to get TS Certification
.




