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
-
name
-
description
-
validator
-
tag-class
-
display-name
A,D
Correct answer
Explanation
In a JSP tag library descriptor (TLD), the required elements within a tag element are 'name' and 'tag-class'. The 'name' element defines the unique tag name within the library, and 'tag-class' specifies the fully-qualified Java class that implements the tag handler. Other elements like 'description', 'validator', and 'display-name' are optional and provide additional metadata or validation logic, but are not required for the tag to function.
-
The included file must have jspf extension
-
The XML syntax of include directive in <jsp:include file="fileName"/> .
-
The content of file included using include directive, cannot refer to variables local to the original page
-
When using the include directive, the JSP container treats the file to be included as if it was part of the original file.
D
Correct answer
Explanation
The include directive <%@ include file="..." %> performs static inclusion at translation time, merging the content as if it were part of the original JSP. Option A is incorrect because any extension works (jspf is just convention). Option B describes the include action , not directive. Option C is wrong because directive content shares the same scope and CAN access local variables.
-
Rule-HTML-Section
-
Rule-HTML
-
Rule-Section-HTML
-
Rule-Obj-Section
A
Correct answer
Explanation
In Pega's rule hierarchy, section rules are Rule-HTML-Section type. They contain HTML and markup to define reusable user interface sections that can be included in harnesses and other sections.
-
Fragments
-
Text files
-
Streams
-
harness
B
Correct answer
Explanation
Text File rules in Pega are specifically designed to store static content like HTML style sheets (CSS files) and JavaScript code. Unlike most Pega rules, Text File rules are not subject to rule resolution - the system does not search through multiple RuleSets or versions to find them. Fragments, Streams, and Harness rules are all subject to standard rule resolution mechanisms.
-
- Create different Lists to different Audience with the required metadata as columns
-
- Create a Single list and attach multiple content types
-
- Create Site Columns with access privileges to the audience and add them to the List
-
- This is not possible with MOSS
B
Correct answer
Explanation
SharePoint content types allow different document categories (like contracts, proposals, reports) to have distinct metadata columns within the same document library. Each content type defines its own fields, and users select the appropriate content type when uploading. Creating separate lists (option A) complicates management, while site columns (option C) share the same schema across all documents.
-
A,B,C
-
B, C , D
-
A,B, D
-
A,C,B
C
Correct answer
Explanation
Statements a, b, and d are correct. Site definitions are stored on the front-end web server's hard drive, while site templates are stored in the content database. Site definitions are highly extensible and can provision multiple web instances, whereas site templates are limited and harder to extend programmatically.
-
<f:faces>
-
<f:view>
-
<h:jsf>
-
<h:view>
B
Correct answer
Explanation
To solve this question, the user needs to have knowledge of JavaServer Faces (JSF) and its structure.
The correct answer is:
B.
The tag must enclose all other tags on a Faces JSP page. It represents the outermost container for a JavaServer Faces (JSF) application and is used to define the view that is to be rendered.
Option A, , is not a valid JSF tag.
Option C, , is not a valid JSF tag either.
Option D, , is a valid JSF tag, but it is not the correct answer to this question. The correct tag is .
-
To keep track of its identifier
-
To keep track of the components in tree
-
To set its submitted property
-
For JavaScript integration
C
Correct answer
Explanation
The HtmlForm component in JSF renders a hidden field to track its submitted state during the request processing lifecycle. This hidden field helps JSF determine whether the form has been submitted and distinguishes between initial form display and postback requests. The hidden field is not for tracking identifiers (A), component trees (B), or JavaScript integration (D) - those are handled by other JSF mechanisms.
B
Correct answer
Explanation
Web.Config is an XML-based configuration file used in ASP.NET applications to store application settings, connection strings, and framework configurations. It follows standard XML syntax and structure.
B
Correct answer
Explanation
Web.Config is an XML-based configuration file used in ASP.NET applications. It contains application settings, connection strings, and framework configurations in a structured XML format.
-
use javax.xml.soap.Element
-
use javax.xml.soap.Node
-
use javax.xml.soap.SOAPHeader
-
use javax.xml.soap.SOAPElement
-
use javax.xml.soap.SOAPFault
-
use javax.xml.soap.SOAPBodyElement
D
Correct answer
Explanation
In JAX-RPC/SAAJ, xsd:anyType maps to javax.xml.soap.SOAPElement in Java to represent arbitrary XML content. SOAPElement extends Node and represents an element in a SOAP message. Standard Element or Node interfaces are too generic or not SAAJ-specific, while SOAPHeader or SOAPFault are specialized SOAP components.
A
Correct answer
Explanation
In HTML, heading tags range from H1 to H6, where H1 is the largest and most important heading, and H6 is the smallest. Therefore, H1 makes the largest headline.
-
<text></text>
-
<body></body>
-
<title></title>
-
<head></head>
B
Correct answer
Explanation
In HTML, most of the visible content of a web page should be placed between the tags. The section contains metadata and title, sets the page title, and is not a standard HTML container.
D
Correct answer
Explanation
META tags are always placed in the HEAD section of an HTML document, not the BODY. The HEAD contains metadata about the document including descriptions, keywords, character encoding, viewport settings, and other information that doesn't display on the page itself. The BODY contains visible content.