Microsoft 70-541 Real Exam Questions
TS: Microsoft Windows SharePoint Services 3.0 – Application Development
When the exam begins, you can choose the programming language in which the code segments will appear. The available code languages for this exam are:
-
Microsoft Visual Basic 2005
-
Microsoft Visual C# 2005
1: 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.
Correct Answers: D
2: 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.
Correct Answers: C D
3: You create a new master page named myDefault.master. You install the master page as part of a new site definition.
You need to set the MasterPageFile URL of the default.aspx page element to reference myDefault.master.
Which value should you use?
A.~masterurl/default.master
B.~masterurl/custom.master
C.~masterurl/myDefault.master
D.~site/default.master
E.~sitecollection/default.master
Correct Answers: B
4: You are creating a custom site definition for a Microsoft Windows SharePoint Services site. You define a document library as a part of the custom site definition.
You need to set the default document type as a Microsoft Office Excel 2007 spreadsheet file for any new instances of the document library. What should you do?
A.In the Schema.xml file, set the Type attribute of the List element to 101 (Document Library).
B.In the Onet.xml file, set the Type attribute of the List element to 101 (Document Library).
C.In the Onet.xml file, set the BaseType attribute of the ListTemplate element to 1 (Document Library).
D.In the Onet.xml file, set the Default attribute of the DocumentTemplate element for an Excel spreadsheet to true.
Correct Answers: D
5: You create a page layout on a Microsoft Windows SharePoint Services site. The page layout has five Web Parts.
You need to ensure that when a user adds the Web Parts to a zone, the page layout arranges all the Web Parts in the zone horizontally.What should you do?
A.Create a single Web Part zone, and modify the HorizontalAlignment attribute of each Web Part.
B.Create a single Web Part zone, and set the value of the LayoutOrientation attribute to Horizontal.
C.Modify the Cascading Style Sheet (CSS) that is used on the site so that the ms-WPTitle class is defined with a direction attribute of ltr.
D.Modify the Cascading Style Sheet (CSS) that is used on the site so that the ms-WPHeader class is defined with a direction attribute of ltr.
Correct Answers: B
6: You are creating a Microsoft Windows SharePoint Services site definition module that declares a reference to a file named Company.aspx.
You need to ensure that the Company.aspx file has a Shared Documents list view Web Part component in the Top WebPartZone location. What should you do?
A.Create a View element that has a BaseViewID attribute and a WebPartZoneID attribute.
B.Create a View element that has a List attribute that contains the value Shared Documents and a WebPartZoneID attribute.
C.Create a View element that has a Name attribute that contains the value Shared Documents and a WebPartZoneID attribute.
D.Create an AllUsersWebPart element that defines the assembly information for the list view WebPart component and specifies the WebPartZoneID attribute.
Correct Answers: B
7: You are creating a Microsoft Windows SharePoint Services site.
You create a custom site definition that has two configuration elements.
You need to ensure that the Web sites that are based on the site definition can only be used for top-level sites.What should you do?
A.Modify the first Configuration element of the site definition. Set the SubWebOnly attribute to false. Delete the remaining elements.
B.Modify the first Configuration element of the site definition. Set the RootWebOnly attribute to true. Set the SubWebOnly attribute to false.
C.Modify all Configuration elements of the site definition. Set the RootWebOnly attribute of the first element to true. Set the SubWebOnly attribute of the remaining elements to true.
D.Modify all Configuration elements of the site definition. Set the RootWebOnly attribute of all elements to true. Set the SubWebOnly attribute of all elements to false.
Correct Answers: D
8: You are creating a Microsoft Windows SharePoint Services application.
You need to display the custom site navigation of your company in a site definition.
Which file should you modify?
A.Onet.xml
B.Schema.xml
C.VWStyles.xml
D.WebTemp.xml
Correct Answers: A
Download | Password: certificatexam.com
Thank You for this good article and please allow me to have the opportunity to express my satisfaction with Hostgator web hosting. They have professional and instant support and they also offer some HostGator discount coupons.