Computer Knowledge
Markup and Web Languages
1,701 Questions
Test your understanding of HTML tags, XML structures, and web page creation technologies. The questions cover elements like CSS styling, parsing documents, and defining web attributes. This section is essential for candidates appearing for computer proficiency tests in various competitive exams.
HTML tags and attributesXML document parsingCSS styling levelsWeb page creation basicsBrowser compatibility
Markup and Web Languages Questions
-
Content Query Web Part
-
Content Editor Web Part
-
Page Viewer Web Part
-
List View Web Part
B
Correct answer
Explanation
Content Editor Web Part is the best choice for embedding JavaScript in SharePoint 2007 pages. It allows direct HTML/JavaScript input via source editing. Content Query, Page Viewer, and List View web parts do not support custom JavaScript injection.
-
Site templates are saved from within a site as an .stp file
-
By default, the maximum size of an .stp file is 10 MB
-
Site Templates can contain the content of list and Libraries
-
The maximum size of Site Templates can be configured with STSADM Commands
A,B,C,D
Correct answer
Explanation
SharePoint 2007 site templates are saved as .stp files with a default 10 MB size limit, which can be modified using STSADM commands. These templates capture list structure and library content but exclude certain items like workflow associations. All four statements correctly describe site template behavior and configuration options in MOSS 2007.
-
Item is the Parent Content Type
-
System Content Type is the Parent Content Type
-
Content Type starts with 0x
-
Document is the Parent Content Type
B,C
Correct answer
Explanation
In SharePoint 2007's content type hierarchy, 'System' is the root parent content type from which all others derive. Content type IDs are hexadecimal strings that always start with '0x' - this is part of their internal identifier structure. 'Item' is a built-in content type but not the parent - it's a child of System. 'Document' is another built-in content type derived from Item, not the parent. The System content type serves as the ultimate base for the entire content type inheritance tree.
-
A Custom field type definition file (XML file) is required to create a Custom Field Type
-
A field class whose instances represents particular fields is required
-
This field class can inherit from SPCustomField or one of the classes in Windows SharePoint Services that derive from it
-
This field class can inherit from SPField or one of the classes in Windows SharePoint Services that derive from it
A,B,D
Correct answer
Explanation
Creating a custom field type in SharePoint requires three components: an XML definition file (option A) that defines the field type, a field class (option B) that represents instances of the field, and this class must inherit from SPField (option D) or one of its derived classes. SPCustomField (option C) is not a valid base class in the SharePoint object model - this is a common misconception. The correct base class is SPField, which provides the foundational functionality for all SharePoint field types.
-
Multiple Site Collections
-
A specific site collection
-
In one specific site and all of its subsites
-
In one specific list
B,C,D
Correct answer
Explanation
The Content Query Web Part (CQWP) can query from a specific site collection (option B), from one specific site and all its subsites (option C), or from a specific list (option D). However, it cannot query across multiple site collections (option A) - this is a known limitation of the CQWP in SharePoint 2007. Each CQWP instance is scoped to a single site collection, making cross-site collection aggregation impossible with this web part alone.
-
WebPart can be disabled
-
WebPart can be closed
-
WebPart can be deleted
-
WebPart can be minimized
B,C,D
Correct answer
Explanation
WebParts can be closed by users and removed permanently by page owners. They can also be minimized to reduce screen space while remaining on the page. WebParts cannot be individually disabled - they must be closed or removed from the page.
-
Feature.xml
-
Schema.xml
-
Manifest.xml
-
Elements.xml
A,D
Correct answer
Explanation
Feature.xml defines the feature itself including properties and activation scope. Elements.xml contains the feature's actual elements like site columns, content types, or list templates. Schema.xml defines list views and forms, while Manifest.xml is for solution packages.
-
Manage List Item
-
Manage Lists
-
Manage Permissions
-
Manage Web Site
A
Correct answer
Explanation
In SharePoint 2007, the available permissions include 'Manage Lists', 'Manage Permissions', and 'Manage Web Site', but there is no permission called 'Manage List Item' - this is the incorrect option.
-
Onet.xml
-
Web.config file for the SharePoint Application.
-
It can not be done.
-
Alerttemplates.xml file
D
Correct answer
Explanation
Email alert templates in SharePoint 2007 are stored in and can be modified through the AlertTemplates.xml file located in the SharePoint hive. This file contains all the email notification templates used by SharePoint alerts.
-
The Web Part Zone which are added to the customized page are removed when we reset it to original site definition
-
The contents in the Web Parts which are inside the Web Part Zones which are there in the default Site Definition is not changed
-
The Web Part Zone which are added to the customized page are not removed when we reset it to original site definition
-
The additional web parts which are added in the Web Part Zone which were part of original site definition are not removed.
A,B,D
Correct answer
Explanation
When resetting a customized page to site definition: (A) Any Web Part Zones added during customization are removed, (B) Web Parts within zones that existed in the original site definition retain their content because those zones are part of the template, (D) Additional Web Parts added to original zones are not removed. Option C is incorrect because custom zones are indeed removed during reset.
-
zzz Members
-
zzz Owners
-
zzz Visitors
-
zzz Readers
A,B,C
Correct answer
Explanation
When creating a Site Collection named 'zzz' based on the Team Site template, SharePoint automatically creates three default SharePoint groups: zzz Members (Contribute permissions), zzz Owners (Full Control permissions), and zzz Visitors (Read permissions). There is no 'zzz Readers' group created.
-
Feature.xml
-
Schema.xml
-
Manifest.xml
-
Elements.xml
A,D
Correct answer
Explanation
SharePoint Features require two XML files: Feature.xml contains metadata (name, ID, scope, description) and Elements.xml contains the feature's actual definitions (lists, modules, content types). Schema.xml is for list definitions, not features. Manifest.xml is not a SharePoint term.
-
The Web Part Zone which are added to the customized page are removed when we reset it to original site definition
-
The contents in the Web Parts which are inside the Web Part Zones which are there in the default Site Definition is not changed
-
The Web Part Zone which are added to the customized page are not removed when we reset it to original site definition
-
The additional web parts which are added in the Web Part Zone which were part of original site definition are not removed.
A,B,D
Correct answer
Explanation
When resetting a customized page to site definition: (A) Web Part Zones added to the customized page are removed, (B) Contents of Web Parts that were part of the original site definition are not changed, and (D) Additional web parts added in zones from the original definition are not removed. Option C is incorrect because added zones ARE removed during reset.
-
zzz Members
-
zzz Owners
-
zzz Visitors
-
zzz Readers
A,B,C
Correct answer
Explanation
When creating a Site Collection named 'zzz' using the Team Site template, SharePoint automatically creates three groups: zzz Members (for contributors), zzz Owners (for administrators), and zzz Visitors (for readers). There is no 'Readers' group - that's what Visitors is for.
-
Feature.xml
-
Schema.xml
-
Manifest.xml
-
Elements.xml
A,D
Correct answer
Explanation
To create a feature in SharePoint 2007, you need two XML files: Feature.xml (which defines the feature itself - its ID, name, scope, etc.) and Elements.xml (which defines what the feature does - the actual elements like site columns, content types, etc.). Schema.xml is for list definitions, Manifest.xml is not used for features.