MCTS SharePoint 2010 Application Development 3 — Questions and Answers
Question 1: In SharePoint 2010, which type of field allows you to define a reusable column used across multiple lists and content types?
- List Column
- Site Column (Correct answer)
- Lookup Column
- Calculated Column
Correct answer: Site Column
Site Columns are defined at the site or site collection level and can be reused across multiple lists and content types.
Question 2: What SharePoint 2010 API namespace contains classes for working with lists, sites, and users programmatically?
- Microsoft.SharePoint.Administration
- Microsoft.SharePoint (Correct answer)
- Microsoft.SharePoint.Client
- Microsoft.SharePoint.Publishing
Correct answer: Microsoft.SharePoint
The Microsoft.SharePoint namespace contains the core server-side classes such as SPSite, SPWeb, SPList, and SPUser.
Question 3: Which SharePoint 2010 feature enables external data to be surfaced within lists using the Business Data Connectivity Service?
- External Lists (Correct answer)
- Linked Lists
- Federated Lists
- Data View Web Parts
Correct answer: External Lists
External Lists display data from external systems through BDC/BCS models, allowing CRUD operations on external data.
Question 4: In SharePoint 2010, what is the role of a Feature Receiver?
- Handles events when list items are modified
- Executes code during Feature activation and deactivation (Correct answer)
- Processes workflow steps automatically
- Runs timer-based background tasks
Correct answer: Executes code during Feature activation and deactivation
Feature Receivers contain code that runs during Feature lifecycle events: FeatureActivated, FeatureDeactivating, FeatureInstalled, and FeatureUninstalling.
Question 5: Which SharePoint 2010 token is used in Elements.xml to reference the current site's URL during Feature deployment?
- $SharePoint.Project.AssemblyFullName$
- ~site (Correct answer)
- ~sitecollection
- $URL$
Correct answer: ~site
The ~site token resolves to the URL of the current site (SPWeb) during Feature activation and is used in XML manifests.
Question 6: What is the maximum size of a single file that can be uploaded to a SharePoint 2010 document library by default?
- 10 MB
- 50 MB
- 250 MB (Correct answer)
- 2 GB
Correct answer: 250 MB
The default maximum file upload size in SharePoint 2010 is 250 MB, configurable in Central Administration.
Question 7: In SharePoint 2010 Client Object Model (CSOM), which method must be called to execute queued requests against the server?
- context.Load()
- context.ExecuteQuery() (Correct answer)
- context.Commit()
- context.Save()
Correct answer: context.ExecuteQuery()
ExecuteQuery() sends all queued client object model requests to the server in a single round-trip and populates the returned objects.
In SharePoint 2010, which type of field allows you to define a reusable column used across multiple lists and content types?