Computer Knowledge
Markup and Web Languages
1,492 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
-
Consuming Sharepoint Web Services
-
Sharepoint Designer Workflows
-
Sharepoint Object Model
-
Writing Sql Queries using Sharepoint Web Services
B
Correct answer
Explanation
JAXP (Java API for XML Processing) is the standard Java API for processing XML documents. It supports parsing XML using DOM (Document Object Model) and SAX (Simple API for XML), as well as transforming XML with XSLT. The other options are not standard or recognizable Java XML processing APIs.
-
<f:faces>
-
<f:view>
-
<h:jsf>
-
<h:view>
B
Correct answer
Explanation
In JSF (JavaServer Faces), the tag is the required root element that encloses all other JSF component tags on a JSP page. It represents the UIViewRoot component and is essential for the JSF lifecycle to process the page correctly. The 'h' prefix typically refers to HTML components, while 'f' refers to core JSF components.
B
Correct answer
Explanation
The ASP.NET Label control renders as a HTML element in the browser. This is because Label is designed to display static text and span is the appropriate inline element for this purpose. Option B is correct. Option A refers to a different HTML element () used for form labeling, while div and table are block elements.
B
Correct answer
Explanation
The asp:Label server control renders as an HTML element in the browser. This is consistent across modern browsers including Netscape Communicator. The element is used for form labeling but is not the default rendering of asp:Label. would create a block-level element, and is for tabular data. The element allows the Label to be inline while applying any styling or CSS class attributes.
B
Correct answer
Explanation
Netscape Communicator renders the asp:Label control as a span element in HTML, ensuring cross-browser styling consistency for text presentation.
-
ASP.NET doesn't support server-side includes
-
ASP.NET doesn't support server-side includes but supports server-side object tags
-
ASP.NET doesn't server-side object tags
-
ASP.NET support server-side includes and server-side object tags
D
Correct answer
Explanation
ASP.NET supports both server-side includes (using syntax) and server-side object tags (using syntax). Server-side includes allow inserting content from other files, while object tags enable creating and using COM components. The other options incorrectly deny these capabilities.
B
Correct answer
Explanation
The asp:Label control is rendered as a HTML span element because a label is primarily used for displaying plain text inline without forcing new lines.
B
Correct answer
Explanation
In WCM, content items must be saved under a Site Area for proper organization and taxonomy. Content cannot be saved directly under Site items; Site Areas are the containers, while Site items are organizational parents. The hierarchy places content within Site Areas, which themselves live under Sites. Option A is incorrect because it misstates the WCM content model.
B
Correct answer
Explanation
Content creators use Authoring Templates to create new content, not Presentation Templates. Authoring Templates define the structure and fields for content creation. Presentation Templates are used later to control how content is displayed to users. Option A is incorrect because it confuses the creation phase with the rendering phase.
A
Correct answer
Explanation
In WCM, you can reference elements from various sources including Sites, Site Areas, content items, and components. This flexibility allows for dynamic content composition and reuse across the content management system. Option B is incorrect because WCM explicitly supports cross-referencing between these element types.
-
Tags in XML cannot contain spaces in them.
-
Tag Names can start with a character (A-Z) or an _(Underscore)
-
Tag Names starting with Underscore cannot have another Underscore in them.
-
Tag Names cannot start with an Underscore
A,B,C
Correct answer
Explanation
XML tag names cannot contain spaces (option A). Tag names can start with letters (A-Z) or underscores (option B). If a tag name starts with an underscore, it can contain additional underscores (option C is true). Option D is false because tag names CAN start with underscores - they're valid. XML naming rules are specific but allow underscores in both positions.
-
All Valid SGML Documents are Valid XML Documents
-
XML Can Contain HTML tags
-
XML is less Complex than SGML
-
XML can be extended using Optional SGML Extras
C,D
Correct answer
Explanation
XML is indeed simpler than SGML (option C), as it was designed to be a streamlined subset. XML can be extended using optional SGML features (option D). Options A and B are both false - not all valid SGML documents are valid XML (XML has stricter rules), and XML tags are not the same as HTML tags even though they may look similar. XML and HTML are distinct markup languages with different purposes.
-
A way of doing transformations in XML
-
Used to change the layout of the XML
-
Used to induce HTMl effects in XML
-
None of the above
A,B
Correct answer
Explanation
Stylesheets like XSLT serve two primary purposes in XML: transforming documents into different structures (like converting XML to HTML) and controlling presentation layout. Option A correctly identifies the transformation capability, while Option B describes the layout/presentation function. Options C and D are incorrect because stylesheets don't 'induce HTML effects' as suggested, and 'None of the above' is false since both A and B are valid functions of stylesheets.