Online Access Free 70-573 Practice Test
| Exam Code: | 70-573 |
| Exam Name: | TS: Office SharePoint Server, Application Development (available in 2010) |
| Certification Provider: | Microsoft |
| Free Question Number: | 150 |
| Posted: | Aug 26, 2026 |
You create a custom Web Part.
You need to create a class to log Web Part errors to the Unified Logging Service (ULS) logs.
What should you use?
You have a custom theme named MyTheme. The theme is defined in a file named MyTheme.thmx.
You have a console application that contains the following code segment. (Line numbers are included for reference only.)
01 using (SPSite site=new SPSite("http://intranet"))
02 {
03 SPWeb web=site.OpenWeb();
04
05 }
You need to programmatically apply the theme to a SharePoint site.
Which code segment should you add to the console application?
You create a Web Part.
You need to display the number of visits to a SharePoint site collection in a label named LblVisits.
You write the following code segment. (Line numbers are included for reference only.)
01 SPSecurity.RunWithElevatedPrivileges(delegate()02 {
03 04 05
try{
06 07 08 09 10
LblVisits.Text = site.Usage.Visits.ToString();}finally{
11
}
12 });
Which code segment should you add at line 05?
You use a third-party site definition to create SharePoint sites.
You need to add a Web Part to the home page of the site definition.
Which file should you modify?
You are creating a custom workflow action that will be used in Microsoft SharePoint Designer reusable workflows.
The action will programmatically create a SharePoint site named Site1 at a specific URL.
You need to ensure that users can specify the URL of Site1 in the action.
What should you use?