Microsoft 70-573 Online Practice
Questions and Exam Preparation
70-573 Exam Details
Exam Code
:70-573
Exam Name
:TS: Office SharePoint Server, Application Development (available in 2010)
Certification
:Microsoft Certifications
Vendor
:Microsoft
Total Questions
:280 Q&As
Last Updated
:Feb 06, 2022
Microsoft 70-573 Online Questions &
Answers
Question 1:
You need to create a Web Part that displays all social tags entered by users. Which code segment should you use?
A. Dim session As New TaxonomySession(SPContext.Current.Site) Dim socialTags As TermSet = session.DefaultKeywordsTermStore.SystemGroup.TermSets("Keywords") B. Dim session As New TaxonomySession(SPContext.Current.Site) Dim socialTags As TermSet = session.DefaultKeywordsTermStore.SystemGroup.TermSets("Tags") C. Dim socialTags As TermSet = DirectCast (SPContext.Current.Site.WebApplication.Properties("Tags"), TermSet) D. Dim socialTags As TermSet = DirectCast (SPContext.Current.Web.AllProperties("Keywords"), TermSet)
A. Dim session As New TaxonomySession(SPContext.Current.Site) Dim socialTags As TermSet = session.DefaultKeywordsTermStore.SystemGroup.TermSets("Keywords")
Question 2:
You create a Web Part.
The Web Part contains a grid view named GridView1 and the following code segment. (Line numbers are included for reference only.)
01 IntranetDataContext dc = new IntranetDataContext("http://intranet"); 02 MyGridView.DataSource = from announce In dc.Announcements _ ; 04 Select announce IntranetDataContext is a LINQ context.
You need to ensure that GridView1 only displays items from Announcements that have an expiry date that is greater than or equal to the current date.
What should you do?
A. Change line 04 to the following code segment: Select Not announce.Expires.HasValue B. Change line 04 to the following code segment: Select announce.Expires.Value.CompareTo(DateTime.Now) >= 0 C. Add the following line of code at line 03: Where announce.Expires.Value.CompareTo(DateTime.Now) >= 0 _ D. Add the following line of code at line 03: Order By announce.Expires.Value.CompareTo(DateTime.Now) >= 0 _
C. Add the following line of code at line 03: Where announce.Expires.Value.CompareTo(DateTime.Now) >= 0 _
MNEMONIC RULE: "only WHERE is missing" Just remember the order of LINQ query: FROM - WHERE - SELECT Using LINQ to SharePoint http://msdn.microsoft.com/en-us/library/ee535491.aspx
Question 3:
You have a SharePoint list named Announcements.
You have an event receiver that contains the following code segment. (Line numbers are included for reference only.)
01 public override void ItemAdding(SPItemEventProperties properties)
02 {
03 if (properties.ListItem["Title"].ToString().Contains("secret"))
04 {
06 }
07 }
You need to prevent users from adding items that contain the word "secret" in the title to the list.
Which code segment should you add at line 05?
A. properties.Cancel = false; B. properties.Cancel = true; C. properties.Status = SPEventReceiverStatus.Continue; D. return;
B. properties.Cancel = true;
MNEMONIC RULE: "prevent from adding = cancel the event" SPItemEventProperties.Cancel indicates whether to cancel the event SPItemEventProperties Class http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventproperties.aspx
Question 4:
You have a SharePoint site collection that contains 100 subsites.
You plan to create a Web Part. The Web Part will be deployed to each subsite.
You need to ensure that the Web Part retrieves all of the files in the root directory of the current subsite.
You write the following code segment. (Line numbers are included for reference only.)
01 SPSite site = SPContext.Current.Site;
02 SPWeb web = SPContext.Current.Web;
Which code segment should you add at line 03?
A. site.AllWebs[1].Files; B. Site.RootWeb.Lists[0].Items; C. web.Files; D. web.RootFolder.SubFolders[0].Files ; web.Users.Add(currentUser.LoginName, currentUser.Email, currentUser.Name, "");
C. web.Files;
MNEMONIC RULE: "current subsite = web = web.Files" Gets the collection of all files in the root directory of the website. SPWeb.Files Property http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.files.aspx
Question 5:
You create a SharePoint solution by using Microsoft Visual Studio 2010. The SharePoint solution contains a third-party assembly. You need to deploy the third-party assembly to the Global Assembly Cache (GAC).
What should you use?
A. a SharePoint mapped folder B. the active deployment configuration C. the Feature Designer D. the Package Designer
D. the Package Designer
MNEMONIC RULE: "Package Designer for GAC"
How to add assemblies into GAC/web application's bin folder using WSPs created using Visual studio 2010'sSharePoint projects.
http://girishm.blog.com/2010/10/19/how-to-add-assemblies-into-gac-web-applications-bin- folder-using-wspscreated-using-visual-studio-2010s-sharepoint-projects-2/ The package contains features and other assets and is used when you
deploy solutions to SharePoint.
The package is also where the assembly deployment location is determined. Visual Studio 2010 introduces a package designer, which makes viewing and managing packages mucheasier.
Visual Studio 2010 Tools for SharePoint Development http://msdn.microsoft.com/en-us/magazine/ee309510.aspx
Question 6:
You have a SharePoint site collection. The default master page for the site collection displays a navigation bar on the left side of the page. You create a custom content page. You need to hide the navigation bar on only the custom content page. What should you do?
A. On the default master page, remove the ContentPlaceHolder control that has the ID PlaceHolderLeftNavBar. B. On the default master page, set the Visible attribute to False in the ContentPlaceHolder control that has the ID PlaceHolderLeftNavBar. C. Add an empty Content control to the custom content page and set the ContentPlaceHolderID attribute to PlaceHolderLeftNavBar. D. Add a Content control to the custom content page, set the ContentPlaceHolderID attribute to PlaceHolderLeftNavBar, and set the Visible attribute to False.
C. Add an empty Content control to the custom content page and set the ContentPlaceHolderID attribute to PlaceHolderLeftNavBar.
MNEMONIC RULE: "Empty Content control"
Share Pointers: Using a Page Layout to Hide the Left Navigation http://www.sdtimes.com/
You are creating an application for SharePoint Server 2010. The application will run on a remote computer. You need to identify a data access method to query lists in the application. Strongly-typed access to columns must be provided from within Microsoft Visual Studio 2010. Which method should you use?
A. client object model B. LINQ to SharePoint C. Representational State Transfer (REST) D. server object model
A. client object model
MNEMONIC RULE: "remote + strongly-typed = Client Object Model" REST is not strongly-typed, LINQ and server object model are not for remote communications.
The new client object models provide an object-oriented system for interoperating with SharePoint data from aremote computer, and they are in many respects easier to use than the already existing SharePoint FoundationWeb services. What's New: Client Object Model http://msdn.microsoft.com/en-us/library/ee535231.aspx
Question 8:
You create a list named List1.
You create two workflows named WF1 and WF2 for List1.
You need to ensure that when a new item is created in List1, WF1 starts automatically. WF2 must start automatically after WF1 completes.
What should you do?
A. Add a SendActivity activity to WF2. B. Add a Replicator activity to WF2. C. Create a SPWebEventReceiver event receiver. D. Create a SPWorkflowEventReceiver event receiver.
D. Create a SPWorkflowEventReceiver event receiver.
MNEMONIC RULE: "Workflow = SPWorkflowEventReceiver" The SPWorkflowEventReceiver class handles workflow events throughout the lifetime of a workflow. Starting: Occurs when a workflow is starting Started: Occurs when a workflow is started Postponed: Occurs when a workflow is postponed Completed: Occurs when a workflow is completed You can register the SPWorkflowEventReceiver with any site, list, or content type. Apress - SharePoint 2010 as a Development Platform (book)
Question 9:
You are developing an application page.
You need to create a pop-up window that uses the ECMAScript object mode.
Which class in the SP.UI namespace would you use?
A. Notify B. ModalDialog C. PopoutMenu D. Menu
B. ModalDialog
Question 10:
You need to delete the previous versions of all documents in a document library. The deleted versions of the documents must be retained in the SharePoint Recycle Bin.
What should you do?
A. For the document library, call the Delete method. B. For the document library, call the Recycle method. C. For each document, call the DeleteAll method of the Versions property. D. For each document, call the RecycleAll method of the Versions property.
D. For each document, call the RecycleAll method of the Versions property.
Reference: MNEMONIC RULE: "all previous versions to Recycle Bin = RecycleAll of the Versions"
Recycles the version collection except for the current version.
Nowadays, the certification exams become more and more important and required by more and more
enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare
for the exam in a short time with less efforts? How to get a ideal result and how to find the
most reliable resources? Here on Vcedump.com, you will find all the answers.
Vcedump.com provide not only Microsoft exam questions,
answers and explanations but also complete assistance on your exam preparation and certification
application. If you are confused on your 70-573 exam preparations
and Microsoft certification application, do not hesitate to visit our
Vcedump.com to find your solutions here.