Which code segment should you use?
You are creating a Microsoft Windows SharePoint Services application that uses a tasks list.
The application must notify the project manager each time a new task is inserted into the tasks list. You write an event receiver in the class named TaskEventClass and compile the class in the assembly named TaskEventAssembly.
You need to register the event receiver. You also need to ensure that the event receiver is fired only when an item is added to the tasks list.
Which code segment should you use?
Which code segment should you use?
You are creating a Web Part for a Microsoft Windows SharePoint Services site named Site1. You install a feature named TimeFeature on Site1.
You write the following code segment.
Dim site As SPSite = New SPSite(“http://server/site1”)
Dim web As SPWeb = site.OpenWeb
You need to display the current time to the user only if the TimeFeature feature is activated on Site1.
Which code segment should you use?
Which code segment should you use?
You create a Microsoft Windows SharePoint Services application. Your company creates two SharePoint sites named Site1 and Site2 in the same Web application.
You write the following code segment.
Private site1 As SPWeb = _
(New SPSite(“http: //localhost/Site1”)).OpenWeb()
Private site2 As SPWeb = _
(New SPSite(“http: //localhost/Site2”)).OpenWeb()
You need to copy a custom cross-site group named CrossSite from Site1 to Site2.
Which code segment should you use?
Which method should you use?
You create a Microsoft Windows SharePoint Services site.
You need to move a menu item to the top of the Quick Launch menu.
Which method should you use?
What should you do?
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?
Which class and method should you implement?
You have a Microsoft Windows SharePoint Services site.
You need to write the custom code that runs each time a new functionality is added to the site.
Which class and method should you implement?
Which file should you modify?
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?
What should you do?
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?
Which value should you use?
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?
What should you do?
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?