SharePoint interview questions

SharePoint quiz questions

  • 1.

    Why do you use Feature Receivers ?

    Answer:

    Feature Receivers are used to execute any code on Activation\Deactivation of a Feature. You can use it for various purposes.

    View
  • 2.

    What is the difference between a Site Definition and a Site Template?

    Answer:

    Site Definitions are stored on the hard drive of the SharePoint front end servers. They are used by the SharePoint application to generate the sites users can create. Site Templates are created by users as a copy of a site they have configured and modified so that they do not have to recreate lists, libraries, views and columns every time they need a new instance of a site.

    View
  • 3.

    How will you add Code behind to a Custom Applictaion Page or a Layout Page in SharePoint?

    Answer:

    You do not deploy a code behind file with your custom Layouts page. Instead, you can have the page inherit from the complied dll of the solution to access the code behind.
     

    View
  • 4.

    What is the performance impact of RunWithElevatedPrivileges?
    Answer:

    RunWithElevatedPrivileges creates a new thread with the App Pool's credentials, blocking your current thread until it finishes.
     

    View
  • 5.

    How Do you implement Impersonation in ShrePoint. 

    Answer:

    By Using RunWithElevatedPrivileges method provided by SPSecurity class.

    View
  • 6.

    How would you retrieve large number of Items form the list ?
    Answer:

    To retrieve large number of items with a better performance we can either use SPQuery or PortalSiteMapProvider Class. Read More with Examples

    View
  • 7.

    How do you debug SharePoint Webparts?

    Answer:

    To debug SharePoint webpart (or any solution) you can simply drag and drop your complied .dll in GAC and recycle the app pool. You can also run upgrade solution command from stsadm.

    View
  • 8.

    Can you develop webparts and other SharePoint solutions at your local machine?

    Answer:

    In order to run and debug sharePoint solutions, the project must reside on the server which has Windows sharePoint services installed. However, you can reference the Microsoft.SharePoint dll in your project at your local, but you won’t be able to run it.

    View
  • 9.

    What Do you know about SharePoint Object Model?

    Answer:

    In Sharepoint Object model there are two Important namespaces.

    The Microsoft.Office.Server namespace is the root namespace of all Office Server objects and Microsoft.SharePoint is the root namespace for all WSS objects.

    View

© 2017 QuizBucket.org