Sharepoint 2007 MOSS Interview questions

1. What does AllowUnsafeUpdates do ?
If your code modifies Windows SharePoint Services data in some way, you may need to allow unsafe updates on the Web site, without requiring a security validation. You can do by setting the AllowUnsafeUpdates property.

C#:
using(SPSite mySite = new SPSite("yourserver"))
{
using(SPWeb myWeb = mySite.OpenWeb())
{
myWeb.AllowUnsafeUpdates = true;
SPList interviewList = myWeb.Lists["listtoinsert"];
SPListItem newItem = interviewList.Items.Add();

newItem["interview"] = "interview";
newItem.Update();
}
}

2. What does RunWithElevatedPrivileges do?
Assume that you have a Web Part in which you want to display information obtained through the Windows SharePoint Services object model, such as the name of the current site collection owner, usage statistics, or auditing information. These are examples of calls into the object model that require site-administration privileges. Your Web Part experiences an access-denied error if it attempts to obtain this information when the current user is not a site administrator. The request is initiated by a nonprivileged user. you can still successfully make these calls into the object model by calling the RunWithElevatedPrivileges method provided by the SPSecurity class.
C#:
SPSite siteColl = SPContext.Current.Site;
SPWeb site = SPContext.Current.Web;
SPSecurity.RunWithElevatedPrivileges(delegate() {
using (SPSite ElevatedsiteColl = new SPSite(siteColl.ID)) {
using (SPWeb ElevatedSite = ElevatedsiteColl.OpenWeb(site.ID)) {
string SiteCollectionOwner = ElevatedsiteColl.Owner.Name;
string Visits = ElevatedsiteColl.Usage.Visits.ToString();
string RootAuditEntries =
ElevatedSite.RootFolder.Audit.GetEntries().Count.ToString();
}
}
});



3.What is a SharePoint Feature? What files are used to define a feature?
A SharePoint Feature is a functional component that can be activated and deactivate at various scopes throughout a SharePoint instances, such as at the farm, site collection, web, etc. Features have their own receiver architecture, which allow you to trap events such as when a feature is installing, uninstalling, activated, or deactivated. The element types that can be defined by a feature include menu commands, link commands, page templates, page instances, list definitions, list instances, event handlers, and workflows.
The two files that are used to define a feature are the feature.xml and manifest file(elements.xml). The feature XML file defines the actual feature and will make SharePoint aware of the installed feature. The manifest file contains details about the feature such as functionality.

4. What are content types ?
A content type is a flexible and reusable WSS type definition that defines the columns and behavior for an item in a list or a document in a document library. For example, you can create a content type for a customer presentation document with a unique set of columns, an event handler, and its own document template. You can create a second content type for a customer proposal document with a different set of columns, a workflow, and a different document template.

5. Workflow can be applied to what all elements of SharePoint ?
While workflow associations are often created directly on lists and document libraries, a workflow association can also be created on a content type that exists within the Content Type Gallery for the current site or content types defined within a list. In short, it can be applied ...
At the level of a list (or document library)
At the level of a content type defined at site scope
At the level of a content type defined at list scope

6. What are the ways to initiate the workflow ?
Automatic,Manual (standard WSS UI interface),Manual (Custom UI Interface)

7. What are the types of input forms that can be created for a workflow ?
You can create four different types of input forms including an association form, an initiation form, a modification form, and a task edit form. Note that these forms are optional when you create a workflow template.

8. What are ways to create input forms for workflow ?
Two different approaches can be used to develop custom input forms for a WSS workflow template.
a. You can create your forms by using custom application pages, which are standard .aspx pages deployed to run out of the _layouts directory. ( disadv: lot of code required when compared to Infopath approach)
b. using Microsoft Office InfoPath 2007 (disadv: picks up a dependenct on MOSS, i.e. it cannot run in a standalone WSS environment)

5. How Branding can be achieved by Master Pages? What are the advantages or disadvantages of Master Pages?
6. Does sharepoint provide any way to grant read-only access to all the users of the company on the portal?
7. What are the steps to create a web-part?
8. What does the webpart .cab file include?
9. What are the benefits of using Infopath?
10. What are the different namespaces per Sharepoint Object Model?

11. What are the different Back-up and Restore methodologies?
12. What are the steps in running a custom WebService under the context of SharePoint?

1. What kind of work you did on Share Point Portal?
2. What is WebPart and how is differe from Web User Control?
3. What are Pros and Cons of WebParts?
4. How you communicate between WebParts?
5. What are the configurations you make to communicate between WebParts?
6. What is difference between WSS and Share Point Portal?
7. What are the things you can not achieve in WSS compare to SPS?
8. Is it possible to migrate old SPS Portal to SPS 2003?
9. Can the migration tools convert all your code?
10. What are the changes you need to do after migrating old SPS to new SPS
11. What are the top level objects?
12. How do you access a list inside an InfoPath Document?
13. What are the events occurred on Document?
14. What is the Interface you will implement for an events call?
15. Have you work with Microsoft Office with Share Point Portal 2003?
16. How you display Excel in Share Point Portal?
17. How u integrate Outlook with Share Point Portal?
18. Do you follow any standard for Share Point Portal?
19. What is the check lists needed before moving to production mode?
20. What the configuration you need to make for Internet based Share Point Portal site?
21. Have you used any tools to check C# coding standards?
22. How you do your unit testing?
23. Do you use any mechanism to create a stub for NUnit?
24. How do you access WebParts Data from InfoPath?

Do u have experience on Share Point Portal administration ?
- What is Custom List ?
- What is back end use SPS 2003 ?
- Can there i use oracle as my back end?
- Explain Security Model in SPS 2003?
- How the search happening in SPS 2003?
- What is difference in View and List?
- What is role of WSS in SPS 2003?
- What is role of Active Directory in SPS 2003 ?
- Can i operate SPS 2003 without Active Directory?
- What is SitreGroup ?
- What is SiteCollection?

1. What is a Content Type?
2. How Branding can be achieved by Master Pages? What are the advantages or disadvantages of Master Pages?
3. Does sharepoint provide any way to grant read-only access to all the users of the company on the portal?
4. What are the steps to create a web-part?
5. What does the webpart .cab file include?
6. What are the benefits of using Infopath?
7. What are the different namespaces per Sharepoint Object Model?
8. What are the different Back-up and Restore methodologies?

No comments: