首页 > Microsoft > TS > 70-541VB

:70-541VB

科目编号:70-541VB

科目名称:

描述:
70-541VB 考试是 Microsoft 公司的 认证考试官方代号,kaoccna 的 70-541VB 权威考试题库软件是 Microsoft 认证厂商的授权产品,kaoccna 绝对保证顺利通过,否则承诺全额退款!
认证作为全球IT领域专家 Microsoft 热门认证之一,是许多大中 IT 企业选择人才标准的必备条件。 如果你正在准备 70-541VB 考试,为 Microsoft 认证做最后冲刺,又苦于没有绝对权威的考试真题模拟

    mcsepass 实行"一次不过全额退款"承诺。如果您购买我们 70-541VB 的考题,只要不是首次通过,凭盖有 PROMETRIC 或 VUE 考试中心钢印的考试成绩单,我们将退还您购买 70-541VB 考题大师的全部费用,绝对保证您的利益不受到任何的损失。

70-541VB
  • 科目: 70-541VB
  • 原价: ¥ 462.00
  • 现价: ¥ 358.00

kaoccna 的优势

70-541VB 试题的质量和价值
mcsepass 模拟测试题具有最高的专业技术含量,只供具有相关专业知识的专家和学者学习和研究之用。
100% 保证您通过 70-541VB 的考试
如果你使用 mcsepass 模拟测试,我们将保证你的第一次参加考试即取得成功,否则,我们将全额退款!
试用后再购买
mcsepass 提供每种产品免费测试。在您决定购买之前,请检测联接,可能存在的问题及试题质量和适用性。
kaoccna认证考试题库网专业提供 Microsoft 70-541VB 最新题库下载,完全覆盖 mcsepass 考试原题。

部分考题展示

 
 
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

联系我们
联系手机:13861768475
MSN:saleintest@hotmail.com
QQ留言 QQ留言

首页 |代考流程 | 常见问题 | 证书查询 | 认证资讯 | 联系我们 | 站点导航 1 2 3 4 | 站点地图

Any charges made through this site will appear as CertBible Tech LTD. All trademarks are the property of their respective owners.

Copyright©2006-2011 mcsepass Limited. All Rights Reserved