Online Access Free 070-573 Practice Test
| Exam Code: | 070-573 |
| Exam Name: | TS: Office SharePoint Server, Application Development (available in 2010) |
| Certification Provider: | Microsoft |
| Free Question Number: | 150 |
| Posted: | Oct 10, 2025 |
You need to create a Web Part that displays all of the content created by a specific user. You write the following code segment. (Line numbers are included for reference only.)
01 FullTextSqlQuery qry = new FullTextSqlQuery(ServerContext.GetContext
(SPContext.Current.Site));
02 qry.ResultTypes = ResultType.RelevantResults;
03
04 qry.QueryText = strQuery;
05 ResultTableCollection results = qry.Execute();
Which code segment should you add at line 03?
You create a SharePoint site by using the Document Center site template.
You need to ensure that all documents added to the site have a document ID. The document ID must
include the date that the document was added to the site.
What should you do?
You have a Feature named Feature1.
You plan to create a new version of Feature1 that will upgrade the existing version of Feature1.
You need to ensure that when Feature1 is upgraded, additional configuration data is added to the property
bag of the site.
What should you do?
You create a Feature named Feature1. Feature1 is activated in a SharePoint site. You create a Web Part that contains the following code.
SPSite site = new SPSite("http://intranet/site1");
SPWeb web = site.OpenWeb();
SPFeatureDefinition feature = SPFarm.Local.FeatureDefinitions["Feature1"];
You need to modify the Web Part to activate Feature1 in Site1 only. Which code segment should you add to the Web Part?