SHAREPOINT Interview Questions part2


 

    1. What are WebPart properties, and what are some of the attributes you see when declaring WebPart properties in code?
        WebPart properties are just like ASP.NET control properties, they are used to interact with and specify attributes that should be applied to a WebPart by a user. Some of the attributes you see with ASP.NET 2.0 properties are WebDescription, WebDisplayName, Category, Personalizable, and WebBrowsable. Although most of these properties come from the System.Web.UI.WebControls.WebParts class, ones like Category come out of System.ComponentModel namespace.
2.  Why are properties important in WebPart development, and how have you exploited them in past development projects? What must each custom property have?
        Properties are important because WebParts allow levels of personalization for each user. WebPart properties make it possible for a user to interact, adjust, and increase overall experience value with the programmatic assets that you develop without having the need to use an external editor or right any code. A very simple example of exploiting a property would be something like allowing the user to change the text on the WebPart design interface so that they can display whatever string of text they desire. Each custom property that you have must have the appropriate get and set accessor methods.
3.  What are ClassResources? How do you reference and deploy resources with an ASP.NET 2.0 WebPart?
         ClassResources are used when inheriting from the SharePoint.WebPart.WebPartPages.WebPart base class, and are defined in the SharePoint solution file as things that should be stored in the wpresources directory on the server. It is a helpful directory to use in order to deploy custom images. In ASP.NET 2.0, typically things such as images are referenced by embedding them as resources within an assembly. The good part about ClassResources is they can help to eliminate recompiles to change small interface adjustments or alterations to external JavaScript files.
4.  What is a SharePoint Solution File? How does it differ from WebPart .cab files in legacy development? What does it contain?
         A SharePoint solution file is essentially a .cabinet file with all a developers custom components suffixed with a .wsp extension that aids in deployment. The big difference with SharePoint solution files is is that a solution: allows deployment to all WFE’s in a farm is highly manageable from the interface allowing deployment, retraction, and versioning Can package all types of assets like site definitions, feature definitions (and associated components), WebParts, etc. Can provide Code Access Security provisioning to avoid GAC deployments And much more..
5.  What is a .ddf file and what does it have to do with SharePoint Solution creation?
         A .ddf file is a data directive file and is used when building the SharePoint solution bundle specifying the source files and their destination locations. The important thing for someone to understand is that the .ddf file will be passed as a parameter to the MAKECAB utility to orchestrate construction of the SharePoint solution file.
6.  What file does a SharePoint solution package use to orchestrate (describe) its packaged contents?
        The solution Manifest.XML file.
7.  What deployment mechanism can you use to instigate Code Access Security attributes for your WebParts?
         SharePoint solution files can add in order to handle code access security deployment issues. This is done in the element in the SharePoint solution manifest.XML, which makes it easier to get assemblies the appropriate permissions in order to operate in the bin directory of the web application.
8.  What are event receivers?
          Event receivers are classes that inherit from the SpItemEventReciever or SPListEventReciever base class (both of which derive out of the abstract base class SPEventRecieverBase), and provide the option of responding to events as they occur within SharePoint, such as adding an item or deleting an item.
9.  When would you use an event receiver?
           Since event receivers respond to events, you could use a receiver for something as simple as canceling an action, such as deleting a document library by using the Cancel property. This would essentially prevent users from deleting any documents if you wanted to maintain retention of stored data.
10. What base class do event receivers inherit from?
         Event receivers either inherit from the SPListEventReciever base class or the SPItemEventReciever base class, both which derive from the abstract base class SPEventReceiverBase.
11.If I wanted to not allow people to delete documents from a document library, how would I go about it?                                                                                          You would on the ItemDeleting event set: properties.Cancel= true.
12.What is the difference between an asynchronous and synchronous event receivers? An asynchronous event occurs after an action has taken place, and a      synchronous event occurs before an action has take place. For example, an asynchronous event is ItemAdded, and its sister synchronous event is ItemAdding 
13.What is Microsoft Windows SharePoint Services? How is it related to Microsoft Office SharePoint Server 2007?
        Windows SharePoint Services is the solution that enables you to create Web sites      for information sharing and document collaboration. 
         Windows SharePoint Services 
     -- a key piece of the information worker infrastructure delivered in Microsoft Windows Server 2003 
     -- provides additional functionality to the Microsoft Office system and other desktop applications, and it serves as a platform for application development. 
         Office SharePoint Server 2007 builds on top of Windows SharePoint Services 3.0 to provide additional capabilities including collaboration, portal, search, enterprise content management, business process and forms, and business intelligence.
14.What is Microsoft SharePoint Portal Server?
          SharePoint Portal Server is a portal server that connects people, teams, and knowledge across business processes. SharePoint Portal Server integrates information from various systems into one secure solution through single sign-on      and enterprise application integration capabilities. It provides flexible deployment and management tools, and facilitates end-to-end collaboration through data aggregation, organization, and searching. SharePoint Portal Server also enables users to quickly find relevant information through customization and personalization of portal content and layout as well as through audience targeting. 
15.What is Microsoft Windows Services?
          Microsoft Windows Services is the engine that allows administrators to create Web sites for information sharing and document collaboration. Windows SharePoint Services provides additional functionality to the Microsoft Office System and other desktop applications, as well as serving as a plat form for application development. SharePoint sites provide communities for team collaboration, enabling users to work together on documents, tasks, and projects. The environment for easy and flexible deployment, administration, and application development.
16.What is the relationship between Microsoft SharePoint Portal Server and Microsoft Windows Services?
     Microsoft SharePoint Products and Technologies (including SharePoint Portal Server and Windows SharePoint Services) deliver highly scalable collaboration solutions with flexible deployment and management tools. Windows SharePoint Services provides sites for team collaboration, while Share Point Portal Server connects these sites, people, and business processes—facilitating knowledge sharing and smart organizations. SharePoint Portal Server also extends the capabilities of Windows SharePoint Services by providing organizational and management tools for SharePoint sites, and by enabling teams to publish information to the entire organization.
17. Who is Office SharePoint Server 2007 designed for?
     Office SharePoint Server 2007 can be used by information workers, IT administrators, and application developers. is designed
18. What are the main benefits of Office SharePoint Server 2007?
     Office SharePoint Server 2007 provides a single integrated platform to manage intranet, extranet, and Internet applications across the enterprise.



  •             Business users gain greater control over the storage, security, distribution, and management of their electronic content, with tools that are easy to use and tightly integrated into familiar, everyday applications.
  •             Organizations can accelerate shared business processes with customers and partners across organizational boundaries using InfoPath Forms Services–driven solutions.
  •             Information workers can find information and people efficiently and easily through the facilitated information-sharing functionality and simplified content publishing. In addition, access to back-end data is achieved easily through a browser, and views into this data can be personalized.
  •            Administrators have powerful tools at their fingertips that ease deployment, management, and system administration, so they can spend more time on strategic tasks.
  •      Developers have a rich platform to build a new class of applications, called Office Business Applications, that combine powerful developer functionality with the flexibility and ease of deployment of Office SharePoint Server 2007.       Through the use of out-of-the-box application services, developers can build richer applications with less code.

19.What is the difference between Microsoft Office SharePoint Server 2007 for Internet sites and Microsoft Office SharePoint Server 2007?
     Microsoft Office SharePoint Server 2007 for Internet sites and Microsoft Office SharePoint Server 2007 have identical feature functionality. While the feature functionality is similar, the usage rights are different. If you are creating an Internet, or Extranet, facing website, it is recommended that you use Microsoft Office SharePoint Server 2007 for Internet sites which does not require the purchase client access licenses. Websites hosted using an “Internet sites” edition can only be used for Internet facing websites and all content, information, and applications must be accessible to non-employees. Websites hosted using an “Internet sites” edition cannot be accessed by employees creating, sharing, or collaborating on content which is solely for internal use only, such as an Intranet Portal scenario. See the previous section on licensing for more information on the usage scenarios.
20.What suites of the 2007 Microsoft Office system work with Office SharePoint Server 2007?
     Office Outlook 2007 provides bidirectional offline synchronization with SharePoint document libraries, discussion groups, contacts, calendars, and tasks. Microsoft Office Groove 2007, included as part of Microsoft Office Enterprise 2007, will enable bidirectional offline synchronization with SharePoint document libraries. Features such as the document panel and the ability to publish to Excel Services will only be enabled when using Microsoft Office Professional Plus 2007or Office Enterprise 2007. Excel Services will only work with documents saved in the new Office Excel 2007 file format (XLSX).
21.How do I invite users to join a Windows SharePoint Services Site? Is the site secure?
     SharePoint-based Web sites can be password-protected to restrict access to registered users, who are invited to join via e-mail. In addition, the site administrator can restrict certain members' roles by assigning different permission levels to view post and edit.
22.Can I post any kind of document?
     You can post documents in many formats, including .pdf, .htm and .doc. In addition, if you are using Microsoft Office XP, you can save documents directly to your Windows SharePoint Services site.
23.Can I download information directly from a SharePoint site to a personal digital assistant (PDA)?
     No you cannot. However, you can exchange contact information lists with Microsoft Outlook.
24.How long does it take to set up the initial team Web site?
     It only takes a few minutes to create a complete Web site. Preformatted forms let you and your team members contribute to the site by filling out lists. Standard forms include announcements, events, contacts, tasks, surveys, discussions and links.
25.Can I create custom templates?
     Yes you can. You can have templates for business plans, doctor's office, lawyer's office etc.
26.How can I make my site public?
     By default, all sites are created private. If you want your site to be a public Web site, enable anonymous access for the entire site. Then you can give out your URL to anybody in your business card, e-mail or any other marketing material. The URL for your Web site will be: http:// yoursitename.wss.bcentral.com Hence, please take special care to name your site. These Web sites are ideal for information and knowledge intensive sites and/or sites where you need to have shared Web workspace. Remember: Under each parent Web site, you can create up to 10 sub-sites each with unique permissions, settings and security rights.
27.How do the sub sites work?
     You can create a sub site for various categories. For example:

  1.      . Departments - finance, marketing, IT
  2.        Products - electrical, mechanical, hydraulics
  3.         Projects - Trey Research, Department of Transportation, FDA
  4.        Team - Retention team, BPR team
  5.        Clients - new clients, old clients
  6.         Suppliers - Supplier 1, Supplier 2, Supplier 3
  7.        Customers - Customer A, Customer B, Customer C
  8.        Real estate - property A, property B The URLs for each will be, for example:
  9.        http://yoursitename.wss.bcentral.com/finance
  10.         http://yoursitename.wss.bcentral.com/marketing                                                              You can keep track of permissions for each team separately so that access is restricted while maintaining global access to the parent site.

28. How do I make my site non-restricted?
     If you want your site to have anonymous access enabled (i.e., you want to treat it like any site on the Internet that does not ask you to provide a user name and password to see the content of the site), follow these simple steps:
          a.      Login as an administrator
          b.     Click on site settings
          c.      Click on Go to Site Administration
          d.     Click on Manage anonymous access
          e.      Choose one of the three conditions on what Anonymous users can access:
                                         i.    Entire Web site
                                        ii.    Lists and libraries
                                       iii.    Nothing
     Default condition is nothing; your site has restricted access. The default conditions allow you to create a secure site for your Web site.


29.Can I get domain name for my Web site?
     Unfortunately, no. At this point, we don't offer domain names for SharePoint sites. But very soon we will be making this available for all our SharePoint site customers. Please keep checking this page for further update on this. Meanwhile, we suggest you go ahead and set up your site and create content for it. 
30.What are picture libraries?
     Picture libraries allow you to access a photo album and view it as a slide show or thumbnails or a film strip. You can have separate folder for each event, category, etc