Search This Blog

Sunday, November 23, 2014

388 Objective Question Answer Of SharePoint 2013 (Part2)

143- Which job is responsible for running steps and tasks related to User Profile Synchronization?
1.     User Profile Incremental Synchronization
2.     User Profile Full Synchronization
3.     ProfileSynchronizationSetupJob
4.     Both a and b

Answer

ProfileSynchronizationSetupJob


Explanation:

ProfileSynchronizationSetupJob manages provisioning, run steps and additional tasks related to User Profile Synchronization
144-Which of the following sources can be used to import user profiles
a)     Active Directory
b)    Active Directory Log on data
c)     Active Directory Resource
d)    Business Data Connectivity
e)     IBM Tivoli Directory Server
f)      Novell Edirectory
g)     Sun Java Systems directory server
h)    All the above

Answer

All the above


Explanation:

Active Directory
Active Directory Log on data
Active Directory Resource
Business Data Connectivity
IBM Tivoli Directory Server
Novell Edirectory
Sun Java Systems directory server
145- The Newsfeed, Sites and Skydrive Pro options become available only when the user profile Synchronization Service is set up.
a)     True
b)    False

Answer

True


Explanation:

No Explanation
146-What are some of the new features available in the My site of SharePoint 2013
a)     Ability to Follow documents, people and sites
b)    My tasks view
c)     Micro blogging , Mentions, Newsfeed
d)    Trending
e)     All the above

Answer

All the above


Explanation:

Mentions :- Shows where a user has been quoted or mentioned using the @ symbol
Newsfeeds:- It is a place where one can write posts, mention other people, be mentioned,
reply to other posts, track changes to followed documents
Microblogging:- Ability to post short status updates and replies that may include text, links,
images, videos, hashtags (#) for categorization/tagging, and @ mentions to directly mention
users in posts
Trending:- Like twitter, shows what subjects are being discussed using the hash tag #
symbol
147-Can a user change all properties on his My Site?
a)     Yes
b)    No

Answer

No


Explanation:

A user can edit only those properties that have been checked as “Allow users to edit values for this property” in the settings page for a property.
148-Which of the following are types of mappings for user profile properties?
a)     Internal
b)    External
c)     Import
d)    Export
e)     (a and b)
f)      (c and d)

Answer

(c and d)


Explanation:

Mappings define how SharePoint user profile properties relate to data in external systems.There
are two types of mappings.

Import:- A property that receives its value from the external attribute.
Export:- For an external attribute whose value is provided by the SharePoint user profile
property.
149- Which of the following is true with regards to Promoted Sites?
a)     They are created by the admin centrally in User Profile Service Application Settings and displayed to all users in the Sites section of My site.
b)    They are a way to recommend useful sites common to an organization
c)     You can configure Audience on them.
d)    All the above

Answer

All the above


Explanation:

They are a way to recommend key sites to the users when they click on “Sites” in My Site.
You can set them on the User Profile Service Application Settings page, by clicking on “Manage Promoted Sites”.
150-hat are the permissions that are by default given to authenticated users in User Profile Service Application?
a)     Create Personal site
b)    Follow people and edit profile
c)     Use tags and Notes
d)    All the above

Answer

All the above


Explanation:

1.      Create Personal Site:- Allows users to create a personal site to store their documents, newsfeed, and followed content.
2.      Follow People and Edit Profile :-Allows users to follow people from their My Site and to edit their personal profile.
3.      Use Tags and Notes :-Allows users to use the Tags and Notes feature from SharePoint Server 2010. This permission can also be used to enable users to leave notes on documents in SharePoint Server 2013.
151- Activity Feed job is responsible for tracking activities that can be followed by the user.
a)     True
b)    False

Answer

True


Explanation:

Status message, Tagging by my colleague, Note Board Post, Tagging with my interests.
Rating, New membership, Sharing Interests, New blog post, Workplace anniversary, new colleague, Job Title change, Manager change, Profile update, Upcoming birthday and upcoming workplace anniversary are the activities that a user can follow and are tracked by the Activity Feed job.
152-Which tool can be used to troubleshoot the User Profile Synchronization Service?
a)     msclient.exe
b)    miisclient.exe

Answer

miisclient.exe


Explanation:

miisclient.exe is one of the tool for monitoring and troubleshooting the synchronization process.
It is located at C:\Program Files\Microsoft Office Servers\15.0\Synchronization Service\UIShell
153-What is the name of the Identity System that is included with SharePoint to manage identities?
a)     Identity Manager
b)    Forefront Identity Manager
c)     Web Identity Manager
d)    All the above

Answer

Forefront Identity Manager


Explanation:

Microsoft Forefront Identity Manager (FIM) is an identity Management product that is included in SharePoint that does credential, access, user, and policy management etc.
Note:- Before setting up the Synchronization connection ensure that the Forefront Identity Manager Service is started (Administrative Tools ?Services)
154- Which of the following is true regarding Windows Powershell?
a)     It is built on .NET framework
b)    It is used to do repeatable tasks
c)     It is a command line tool used to do provisioning, maintenance of tasks
d)    All the above

Answer

All the above


Explanation:

Windows PowerShell is a command-line tool and supports scripting language from Microsoft.
It can be used to write scripts that can be scheduled with Windows Task Scheduler. You have lot more granular options to do backup and recovery operations than what is present with Central administration interface. Administrators can work directly withweb applications, site collections, sites, lists and much more through Powershell.
Windows PowerShell is located at the following path: <%SystemRoot%>\System32\WindowsPowerShell\v1.0\PowerShell.exe
155- What is command to run to make available help for SharePoint cmdlet?
a)     Get-Help
b)    Update-Help

Answer

Update-Help


Explanation:

SharePoint PowerShell help is not available locally by default. Running Update-Help will download the help files from the Internet.

Once help is installed you can run or example:-
Get-Help New-SPWebApplication –Full
or to get online help
Get-Help Get-SPSite -Online
156-What is the snapin that should be added to Windows Powershell to load SharePoint cmdlets?
a)     Add-PSSnapinMicrosoft.SharePoint.PowerShell
b)    Add-SnapinMicrosoft.Windows.SharePoint.Powershell
c)     Add-PSSnapinMicrosoft.Windows.SharePoint.Powershell
d)    None of the above

Answer

Add-PSSnapinMicrosoft.SharePoint.PowerShell


Explanation:

Add-PSSnapinMicrosoft.SharePoint.PowerShell will load the sharePointcmdlets into Windows Powershell
157-SharePoint 2013 Management shell is a Windows Powershell console that is already loaded with SharePoint Powershellsnapin.
a)     True
b)    False

Answer

True


Explanation:

The SharePoint.ps1 file that is located in %CommonProgramFiles%\Microsoft Shared\Web Server Extensions\15\Config\PowerShell\Registration has built-in registration of the snap-in.
158-Which of the following is true regarding a Script file in Powershell?
a)     It has an extension of .ps1
b)    It can be executed by typing \Script.ps1( where Script is the filename)
c)     A Powershell script can also be executed as a batch file (runcmd.bat)
d)    All the above

Answer

All the above


Explanation:

No Explanation
159-Which of the following is true regarding Powershell scripts?
a)     You can use filters, variables and operators
b)    You can use aliases for some of the commands
c)     You can use conditions, loops, try-catch,functions
d)    All the above

Answer

All the above


Explanation:

Filters can be used while passing the object to the next cmdlet in a pipeline.
They are declared using Where-Object
Example:-Get-Process | Where-Object {$_.ProcessName -like "w*"}

Aliases:-can be used for some commands
Example:-
dir ,ls : Get -ChildItem
cls : Clear - Host
where, ? : Where -Object
foreach , % : ForEach -Object
gcm : Get -Command
gm : Get -Member
160-What are the important types of members of .NET objects used in Powershell scripts?
a)     Functions
b)    Methods
c)     Properties
d)    Both b and c

Answer

Both b and c


Explanation:

.NET objects have two very important types of members:
Properties (attributes of the object) and
Methods (actions you can perform on the object)
Ex:-
$today = [System.DateTime]::Today{"::" operator is used to call the static members)
Write-Host $today.ToLongDateString()
161- Can you write your own custom cmdlets?
a)     Yes
b)    No

Answer

Yes


Explanation:

No Explanation
162-What permissions are needed for a user to run Powershellcmdlets?
a)     The user must be a member of the SharePoint_Shell_Access role
b)    The user must also be a member of the WSS_ADMIN_WPG
c)     Both a and b
d)    Only a

Answer

Both a and b


Explanation:

The user must be a both a member of the SharePoint_Shell_Access role on the configuration and content database and also be a member of the WSS_ADMIN_WPG local group on the system where SharePoint 2010 Products is installed.
163-How do you represent a site collection object?
a)     Web
b)    SPSite
c)     SPWeb
d)    Site

Answer

SPSite


Explanation:

In the Server Object model SPSite represents a SharePointSite collection.
164-Which of the following is true for developing Server Object model applications?
a)     You can access the API from any client machine.
b)    SharePoint Server must be installed wherever the API is being used.
c)     You can access it from bothclient machine orSharePoint server machine.
d)    None

Answer

SharePoint Server must be installed wherever the API is being used.


Explanation:

Server Object Model code must be executed on a server that is a member of a SharePoint farm





165-Where are the assemblies installed when you program against the Server Object Model API?
a)     In SharePoint 15 hive folder
b)    In Global Assembly Cache
c)     In your local machine
d)    None of the above

Answer

In Global Assembly Cache


Explanation:

They are installed as farm solutions to the global assembly cache
166- Which of the following option is true?
a)     Sandboxed solutions can use only a subset of the Server Object Model API
b)    An App cannot use Server Object Model API
c)     You can use “LINQ to SharePoint” provider in Server Object Model.
d)    All of the above

Answer

All of the above


Explanation:

No Explanation
167-What build configuration does the Server Object Model require?
a)     X86
b)    X86 or X64
c)     X64
d)    Any CPU

Answer

X64


Explanation:

No Explnation
168-Server Object Model can be used to develop which of the following kind of components that run within the SharePointserver process?
a)     Custom web parts
b)    Event handlers
c)     Timer Jobs
d)    All of the above

Answer

All of the above


Explanation:

No Explanation
169- Which of the following options are true with regard to a SharePoint farm
a)     A SharePoint farm has a single configuration database
b)    It contains Servers and Service Applications
c)     It contains content databases
d)    All of the above
e)     a and b

Answer

a and b


Explanation:

No Explanation
170- What dll is automatically referenced in a “Sharepoint 2013 Empty Project” template in Visual Studio 2012?
a)     Microsoft.Sharepoint.dll;
b)    System.Sharepoint.dll
c)     Windows.Sharepoint.Services;
d)    None of the above

Answer

Microsoft.Sharepoint.dll;


Explanation:

Microsoft.Sharepoint.dll which is installed in the Global Assembly Cache
providesa rich set of classes for working on Sharepoint objects.
171-Which method is used to check if a List exists or not using Server Object Model?
a)     web.Lists.TryList("Course");
b)    web.Lists.TryGetList("Course");

Answer

web.Lists.TryGetList("Course");


Explanation:

The method TryGetList(“Course”) will return null if the list does not exist and so we can use it to verify if a list exists or not before performing operations on the list.
172-Can SharePoint Server Object Model be used in Apps?
a)     Yes
b)    No

Answer

No


Explanation:

Programming against the SharePoint server object model API is only possible in
farm solutions and sandboxed solutions and is not permitted in SharePoint Apps.
173-Which is the best way to retrieve the value of a column using SPListItem indexer?
a)     Display Name
b)    Internal Name
c)     Static Name
d)    Id (Guid)

Answer

Internal Name


Explanation:

We can use the internal name or display name or Guid of a list field. For an indexer based on a name, Microsoft SharePoint Foundation first looks for the field by internal name and then by display name so performanceis better if internal name is used.
174-When do you use SPSiteDataQuery?
a)     To query the data from only one list
b)    To query the data from only one or more list
c)     To query the data from only one or more lists and Libraries

Answer

To query the data from only one or more lists and Libraries


Explanation:

To query the data from only one or more lists and Libraries

You can use SPSiteDataQuery when you need to extract data from multiple lists in multiple Web sites in the same Web site collection
The data is extracted on the basis of the query you write and is
returned as a Datatable.
Ex:-
SPSiteDataQuery query = new SPSiteDataQuery();
query.Lists = "<Lists ServerTemplate=\"101\" />";
query.ViewFields = "<FieldRef Name=\"Title\" />" ;
query.Webs = "<Webs Scope=\"SiteCollection\" />";
DataTable dt = web.GetSiteData(query);
dataGridView.DataSource = dt;
175- What property of SPSitedo you use to get the top level site?
a)     OpenWeb
b)    RootWeb
c)     GetWeb
d)    GetContext

Answer

RootWeb


Explanation:

Example:-
SPWeb web = newSPSite("http://spdemoserver:10000/").RootWeb;
176-SPContext class is used to return context information about objects such as the current Web application/site collection/site/ list/list item
a)     True
b)    False

Answer

True


Explanation:

Example:-
SPWebApplicationwebapp = SPContext.Current.Site.WebApplication;
SPSite site = SPContext.Current.Site;
SPWeb web = SPContext.Current.Web;
SPListlst = SPContext.Current.List;
SPListItem item = (SPListItem)SPContext.Current.Item;
177-When the code not only reads the properties of a site/web but makes changes to the data, then we have to use the Site or Web property AllowUnsafeYpdates to true within RunWithElevatedPrivileges to update the database without any security validation
a)     True
b)    False

Answer

True


Explanation:

AllowSafeUpdates needs to be set to true when using the RunWithElevatedPrivelliges because SharePoint by default does not allow updates to the database from outside of the current user's context.
Example:-
web.AllowUnsafeUpdates = true;
SPListlst = web.Lists["Courses"];
SPListItemnewItem = lst.Items.Add();
newItem["CourseName"] = “sql”;
newItem.Update();




178- Which class is used to handle Exceptions in SharePoint Server object model?
a)     ServerSPException
b)    SPServerException
c)     SPException
d)    ServerException

Answer

SPException


Explanation:

SPException class represents an exception in Microsoft SharePoint Foundation Server Object Model.
179-19) You have a Web application that contains the following code segment.
private void CreatingSPSite()
{
SPSitesiteCollection = null;
try
{
siteCollection = new SPSite("http://contoso.com");
}
finally
{ }
}
You need to prevent the code segment from causing a memory leak.
Which code segment should you add?
a)     if (siteCollection != null) { siteCollection.Dispose();
b)    siteCollection = null
c)     siteCollection.WriteLocked = false

Answer

siteCollection = null


Explanation:

Method 1:
The basic difference between Close() and Dispose() is, when a Close() method is called, any managed
resource can be temporarily closed and can be opened once again. It means that, with the same object the
resource can be reopened or used. Whereas Dispose() method permanently removes any resource (un-
managed) from memory for cleanup and the resource no longer exists for any further processing.

Method 2:
Using (SPSite site =new SPSite("http://www.contoso.com/default.aspx"))
Using "Using" guarantees that resources are properly cleaned up and that they're cleaned up in the most timely
manner.
180-Can we use ExceptionHandlingScope object to enable exception Handling on server?
a)     Yes
b)    No

Answer

Yes


Explanation:

We can use it only on server side and not on client side.ExceptionHandlingScope ignores an exception that is raised by the server or executescode in response to an exception that is thrown by the server.





181-Which of the following is true regarding CAML?
a)     CAML(Collaborative Application Markup language) is an XML based language.
b)    It is used by SharePoint to define the fields and views that are used in sites and lists.
c)     It is supported by SharePoint webservices and by the SharePoint Object Model.
d)    All the above.

Answer

All the above.


Explanation:

It can be used to do the following activities in SharePoint:-
Provide schema definition to the Web site provisioning system about how the site looks and acts.
Define views and forms for data and page rendering or execution.
Act as a rendering language that performs functions in the DLL like pulling a value from a particular field.
Provide batch functionality for posting multiple commands to the server using protocol.

A simple CAML query is as follows:
<Query>
<Where>
<Eq>
<FieldRef Name=”FieldName” />
<Value Type=”DataType”>Value</Value>
</Eq>
</Where>
<OrderBy>
<FieldRef Name=”FieldName” />
<FieldRef Name=”FieldName” />
</OrderBy>
</Query>
182- Which types of rendering does CAML support in SharePoint?
a)     Data Defining Elements
b)    HTML-Rendering elements
c)     All the above

Answer

All the above


Explanation:

Collaborative Application Markup Language (CAML) has two major kinds of elements for page rendering and for field rendering.
Page Rendering:- (to construct HTML that is displayed in the browser)
Field Rendering:- (to define the type of data that is contained within a field)
183-  CAML queries are faster than SharePoint to LINQ queries?
a)     Yes
b)    No

Answer

Yes


Explanation:

When you use LINQ queries, they are internally converted to CAML queries at run time and so require an additional step and so CAML is faster than LINQ
184-Which class do you use to frame a CAML query?
a)     CAMLQuery
b)    SPQuery
c)     SiteQuery
d)    None of the above

Answer

SPQuery


Explanation:

SPQuery query = newSPQuery();
query.ViewFields = @"<FieldRef Name='Title'/><FieldRef Name='Duration'/>";
query.Query =
@"<Where>
<Lt>
<FieldRef Name='Duration'/>
<Value Type='Number'>10</Value>
</Lt>
</Where>";
SPList list = web.Lists.TryGetList("Courses");
SPListItemCollection items = list.GetItems(query);
185- What property of SPQuery class is used to limit the no of rows returned by the CAML Query?
a)     PageRowLimit
b)    RowLimit
c)     PageSizeLimit
d)    PageRowLimit

Answer

RowLimit


Explanation:

SPQuery.RowLimit property allows you to set how many rows you need in the result
Ex:-
SPQueryqry = newSPQuery();
qry.RowLimit = 10;
186-What property of SPQuery is used to specify the fields required in the view?
a)     GetFields
b)    ViewFields
c)     ProjectedFields
d)    Non of the above

Answer

ViewFields


Explanation:

The ViewFields property has a string that refers to the inner XML of the ViewFields element in CAML.
Ex:-
query.ViewFields = string.Concat(
"<FieldRef Name='AssignedTo' />",
"<FieldRef Name='LinkTitle' />",
"<FieldRef Name='Duration' />",
"<FieldRef Name='CourseName' />");
187-The result of CAML queries are only known at runtime.
a)     True
b)    False

Answer

True


Explanation:

No Explanation




188-Which of the following is true regarding SharePoint to LINQ provider?
a)     LINQ queries are internally converted to CAML queries by SharePoint
b)    It provides strongly typed objects and so we have intellisense while coding
c)     The DataContext class has to be regenerated if new columns are added to the SharePoint list
d)    All the above

Answer

All the above


Explanation:

No Explanation
189-What is the command line tool used to generate the entity classes when using SharePoint to LINQ Provider?
a)     Splinq.exe
b)    Spmetal.exe
c)     Sharepointlinq.exe
d)    None of the above

Answer

Spmetal.exe


Explanation:

SPMetal is a command-line tool that generates entity classes, which provide an object-oriented interface to the Microsoft SharePoint Foundation content databases.

It is used to generate the DataContext class which is can be used to generate LINQ queries.


190- The dll Microsoft.SharePoint.Linq is located under which path?
a)     C:\Program Files\Common Files\Microsoft Shared\Web server Extensions\15\ISAPI
b)    C:\Program Files\Common Files\Microsoft Shared\Web server Extensions\15\Template\ClientBin

Answer

C:\Program Files\Common Files\Microsoft Shared\Web server Extensions\15\ISAPI
191-SharePoint to LINQ cannot be implemented for an External List.
a)     True
b)    False

Answer

True


Explanation:

No Explanation
192-SharePoint to LINQ cannot be used in Silverlight Client Object model.
a)     True
b)    False

Answer

True


Explanation:

No Explanation


193-y default, Created, CreatedBy, Modified and ModifiedBy fields are not created by SPMetal.exe
a)     True
b)    False

Answer

True


Explanation:

No Explanation
194- Comparing two columns of a SharePoint list is possible in LINQ queries but not in CAML queries.
a)     True
b)    False

Answer

True


Explanation:

We can compare two columns in SharePoint to LINQ provider as follows:-
var qry = from c in CourseMaterial
where c.CompletedTime > c.EstimatedTime
select c;
195-Which of the following files use CAML?
a)     WebTemp.xml
b)    Onet.xml
c)     Schema.xml
d)    FldTypes.xml
e)     All the above

Answer

All the above


Explanation:

WebTemp.xml:-Itemizes the site definitions and their child configurations
Onet.xml:- Specifies the details of the configurations that constitute a site definition
Schema.xml:- Defines a specific type of list
FldTypes.xml:- Used during site or list creation to define how field types are rendered in the different modes for viewing list data.
196-Which of the following components can be deployed as a Feature?
a)     Workflows
b)    Webparts
c)     Pages(Ex:- master page)
d)    List Instances
e)     Custom Actions
f)      Event Handlers
g)     Content Types
h)    All the above

Answer

All the above


Explanation:

No Explanation
197-What is the scope that represents a feature that targets a sitecollection?
a)     Web
b)    Site
c)     Farm
d)    None of the above

Answer

Site


Explanation:

No Explanation
198-What is the minimum fle required for a Feature?
a)     Feature.xml
b)    Element.xml
c)     Manifest.xml
d)    All the above

Answer

All the above


Explanation:

Every feature directory should contain at least one file called feature.xml. But it directory can contain one or more xml files as well as resource files such as image files, css files or js files. A feature.xml file contains attributes like Id, Title, Description, Version, Scope, Hidden, and ImageURL.
199-Which of the following is true with regards to a feature.xml file?
a)     It defines the feature and specifies the location of assemblies, files, dependencies, or properties that support the Feature.
b)    It points to a manifest file that tells SharePoint where to find the code and XML that defines the feature.
c)     It is a XML based file that uses CAML to define the feature
d)    All the above

Answer

All the above


Explanation:

It defines attributes for feature definition and it an XML based file in CAML format. It contains one or more element manifests and can reference a feature receiver.
Ex:- Schema of Feature.xml
<?xml version="1.0" encoding="utf-8" ?>
<Feature
xmlns="http://schemas.microsoft.com/sharepoint/"
Id="11111112-1111-1111-1111-111111111111"
Title=""
Scope="Web"
>
<!-- Element Manifests -->
<ElementManifests>
<ElementManifest />
<ElementFile />
</ElementManifests>

<!-- Dependencies -->
<ActivationDependencies>
<ActivationDependency />
</ActivationDependencies>

<!-- Properties -->
<Properties>
<Property />
</Properties>
</Feature>

Example:-
<Feature xmlns =" http://schemas.microsoft.com/sharepoint/"
Id= "865429158-7048-4421-AD21-EDAEF0D67C81 "
Title ="My List"
Description="A feature to create a List "
Version =" 1.0.0.0 "
Scope =" Web "
Hidden= "FALSE "
ReceiverAssembly ="FeatureDemo, Version=1.0.0.0, Culture=neutral,
PublicKeyToken =56170dd0494afccc"
ReceiverClass="FeatureDemo.FeatureReceiver "
ImageUrl= " FeatureDemo /FeatureIcon.gif " >
<ElementManifests >
<ElementManifest Location= "elements.xml " />
</ElementManifests >
</Feature >
200-Which of the following is true regarding a feature?
a)     It can have dependencies on other features.
b)    It is installed in GAC
c)     Every feature has a its own GUID
d)    All the above

Answer

All the above


Explanation:

Note:- To create a GUID from Visual Studio, Tools?Create GUID
201-hich of the following is true with regard to Feature Receivers?
a)     It is used to add Event Handlers
b)    They are not included in Apps
c)     A Feature Receiver derives from SPFeatureReceiver
d)    All the above

Answer

All the above


Explanation:

SPFeatureRecever has the following methods(Event Handlers)
FeatureActivated
FeatureDeactivating
FeatureInstalled
FeatureUninstalling
FeatureUpgrading
202-Which of the following is true regarding a .wsp solution file in SharePoint?
a)     It is a cabinet file.
b)    It is a collection of components such as features, assemblies, site definitions packaged as a single file
c)     It can be deployed as a Farm or Sandboxed solution in SharePoint.
d)    All the above

Answer

All the above


Explanation:

It is a CAB file with .wsp as extension and bundles multiple features, site definitions, assemblies, and other files into a single package, which stores these files in a format needed by SharePoint to deploy the files to the server
203-Which of the following is true with regards to SharePoint root directory?
a)     SharePoint relies on a set of template files which are stored in the root directory.
b)    This special directory is located on the file system of every Web front end server.
c)     This path is located at C:\ Program Files \Common Files\Microsoft Shared \ Web Server Extensions\15
d)    All the above

Answer

All the above


Explanation:

/ISAPI Web Services (*. svc, *. ashx and *.asmx)
/Resources Resource files (*. resx )
/TEMPLATE/ADMIN Application pages used exclusively in Central Administration
/TEMPLATE/CONTROLTEMPLATES ASP.NET User Controls (*. ascx )
/TEMPLATE/FEATURES Feature definition files (*. xml)
/TEMPLATE/IMAGES Images (*. gif, *. jpg and *. png )
/TEMPLATE/LAYOUTS Application pages (*. aspx )
/TEMPLATE/LAYOUTS/1033/STYLES CSS Files (*. css)
/TEMPLATE/LAYOUTS/ClientBin Silverlight components (*. xap )
/TEMPLATE/SiteTemplates Site Definition files (onet.xml)
/TEMPLATE/XML Custom field type definition files (fdltype *.xml)
204- What is a manifest file of a Solution package?
a)     It contains instructions to the installer on the Web Front End Server
b)    It contains the Meta data of a solution package
c)     All the above

Answer

All the above


Explanation:

At the time of deployment, SharePoint inspects manifest.xml file to determine which template files it needs to copy into the SharePoint root directory.
Ex:- Sample manifest.xml file
<Solution SolutionId="4AFC1350-F354-4439-B941-51377E845F2B" xmlns="http://schemas.microsoft.com/sharepoint/">
<FeatureManifests>
<FeatureManifest Location="FeatureDemo\feature.xml"/>
</FeatureManifests>
<TemplateFiles>
<TemplateFile Location="ControlTemplates\FeatureDemoform.ascx"/>
</TemplateFiles>
<RootFiles>
<!-- These files go into the 15\ directory and can be used for Web services and global resources -->
<RootFile Location="ISAPI\MyWebService.asmx">
</RootFiles>
<Assemblies>
<Assembly DeploymentTarget="GlobalAssemblyCache"
Location="ms.samples.sharepoint.myFeature.dll"/>
</Assemblies>
</Solution>
205-Solutions can be deployed in which of the following ways?
a)     Farm Solution
b)    Sandboxed solution
c)     App solution
d)    (a and b)

Answer

(a and b)


Explanation:

Solutions can be deployed only in two ways:-
Farm and Sandboxed Solutions(introduced in SharePoint 2010 and deprecated in SharePoint 2013)
206- What designers are available in Visual Studio to create and deploy features?
a)     Feature designer
b)    Package Designer
c)     Package Explorer
d)    All the above

Answer

All the above


Explanation:

Feature Designer:- You can create and customize SharePoint features by using the Feature Designer in Visual Studio. You can set the Feature scope and add other Features as dependencies.
Package Designer:- You can group SharePoint elements into a single solution package and configure whether to reset the Web server during deployment. It also generates the XML file that describes the package contents.
Package Explorer:- You can use it to complement the Feature Designer and Package Designer, you can use the Packaging Explorer to group your SharePoint files into Features and packages. In addition, you can see the hierarchical view of the package, Features, SharePoint project items, and files.
207-When you update a solution, does it automatically upgrade the feature?
Yes
No

Answer

No


Explanation:

No Explanation
208-How can you package a solution using Visual Studio 2012?
a)     Package the Project
b)    Publish the Project
c)     Deploy the Project
d)    Build and Run the Project

Answer

Publish the Project


Explanation:

In Visual Sudio 2012 ? Right click the Project? Publish.
This creates a .wsp file but does not deploy it.

It can then be deployed using Powershell. 
209-How can a Content Type be created?
a)     Through the User Interface
b)    Using SharePoint Foundation object model
c)     Using declarative XML and deploying a feature
d)    All the above

Answer

All the above


Explanation:

No Explanation
210-Which files do you use to define the Content Type using declarative XML?
a)     Schema.xml
b)    Elements.xml
c)     Both a and b
d)    None of the above

Answer

Elements.xml


Explanation:

Ex:- Schema for a Content Type
<ContentType
BaseType="Text"
ID="Text"
Name="Text"
Description="Text"
DocumentTemplate="Text"
FeatureId="Text"
Group="Text"
Hidden="TRUE" | "FALSE"
Inherits="TRUE" | "FALSE"
ProgId="Text"
NewDocumentControl="Text"
Overwrite="TRUE" | "FALSE
PushDownChangedResourceFilesOnly="TRUE" | "FALSE
ReadOnly="TRUE" | "FALSE"
RequireClientRenderingOnNew="TRUE" | "FALSE"
ResourceFolder="Text"
Sealed="TRUE" | "FALSE"
V2ListTemplateName="Text"
Version="Integer"
/>
211-Can you add an EventReceiver to a Content Type?
a)     Yes
b)    No

Answer

Yes


Explanation:

We can also develop a content type and bind an event receiver to this content type.
212-What is the base content type for a custom list?
a)     System
b)    Parent
c)     Item
d)    List

Answer

Item


Explanation:

Ex:- In the <ContentType> element
<ContentType ID=”0x0100D72A3EdF” />
The portion “0x0100” tells that the Content Type we are creating inherits from the item content type.
213-here do you define the fields that should be included in the Content Type in Elements.xml file?
a)     <Field>
b)    <FieldRef>
c)     <ContentType>
d)    None of the above

Answer




Explanation:

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Field/>
<ContentType >
<FieldRefs>
<FieldRef/>
</FieldRefs>
<XmlDocuments>
<XmlDocument
<FormTemplates
<Display/>
<Edit/>
<New/>
</FormTemplates>
</XmlDocument>
</XmlDocuments>
</ContentType>
<Elements/>
214-Which element do you use to the fields into a ContentType in Elements.xml file?
a)     <Fields>
b)    <FieldRefs>
c)     <Field>
d)    None of the above

Answer




Explanation:

No Explanation
215- Can you derive a list definition from a Content Type?
a)     Yes
b)    No

Answer

Yes


Explanation:

No Explanation
216-Which of the following statement is true?
a)     List Template and List definition do not mean the same.
b)    List Template is a file with .stp extension and is stored in the content database
c)     List Definitions are found on the Sharepoint web front end server at the location C:\Program Files\Common Files\Microsoft shared\Web Server Extensions\......
d)    All the above

Answer


All the above


Explanation:

No Explanation



No comments:

Post a Comment