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
A
Correct answer
Explanation
In deprecated HTML font tags, using +2 or -2 adjusts the font size relative to the surrounding text. The SIZE attribute accepted values from 1 to 7, with +2 meaning increase current size by 2 steps.
B
Correct answer
Explanation
HTML heading tags range from H1 (largest) to H6 (smallest), so H1 is actually the largest header tag, not the smallest. The statement is false because H6 is the smallest heading.
B
Correct answer
Explanation
The page title in HTML is placed inside the HEAD tag, which contains metadata about the document. The BODY tag contains visible content, while HEAD contains elements like TITLE, META, and LINK that don't display on the page.
-
EXtreme HyperText Markup Language
-
EXtensible HyperText Marking Language
-
EXtensible HyperText Markup Language
-
EXtra Hyperlinks and Text Markup Language
C
Correct answer
Explanation
XHTML stands for EXtensible HyperText Markup Language, combining features of HTML with the stricter XML standard.
-
Name of the schema.
-
Name of the Root node in the xml document
-
Namespace.typename of the project in which the schema has been deployed
-
Name of the xml document
C
Correct answer
Explanation
When creating XML-based facts for the Business Rules Engine, the Document Type property must use the fully qualified name format: Namespace.TypeName. This allows BRE to correctly resolve and instantiate the schema. Using just the schema name or root node is insufficient.
-
<c:href>
-
<c:link>
-
<c:out>
-
<c:url>
D
Correct answer
Explanation
The JSTL tag creates properly formatted and encoded URLs in JSP pages. It handles URL rewriting for session tracking (adding jsessionid when cookies are disabled), supports query parameters, and ensures proper URL encoding. and don't exist in JSTL; is for value output.
A
Correct answer
Explanation
ASP.NET pages can only contain one server-side Form tag because the page framework expects a single form for postback processing. Multiple runat="server" forms would cause postback event handling conflicts since the framework can only determine which form caused the postback if there is one form.
A
Correct answer
Explanation
Apache Cocoon is an XML publishing framework built specifically to interact with various data sources (databases, file systems, web services) and transform content into multiple output formats (HTML, PDF, WAP, etc.). It uses a pipeline processing model based on SAX (Simple API for XML) to efficiently handle XML transformations. Log4j is for logging, Axis is for SOAP web services, and Struts is an MVC web framework - none are XML publishing frameworks like Cocoon.
-
&
-
<and>amp;</and>
-
&&
-
&
D
Correct answer
Explanation
In HTML, the ampersand character (&) is a special character used to start entity references. To display an actual & on screen, you must use the & entity. The entity & renders as a single & character when the HTML is displayed in a browser.
-
an jsp-based service IDL
-
an non XML-based service IDL
-
an XML-based service IDL
-
none
C
Correct answer
Explanation
WSDL serves as an Interface Definition Language (IDL) for web services, similar to how CORBA IDL works for distributed objects. Being XML-based makes it platform-independent and readable by both humans and machines. It defines the service contract without exposing implementation details.
-
all validations and requests
-
all Validations
-
all requests
-
None
B
Correct answer
Explanation
In SOAP message structure, the header contains auxiliary information like authentication tokens, transaction IDs, validation rules, and routing information. The actual request or response payload goes in the body section. This separation of concerns keeps metadata separate from core message content.
-
only XML
-
XSD, XML, XML schemas
-
only XSD
-
only XML schemas
B
Correct answer
Explanation
Web services can process various XML-based request formats including plain XML documents, XSD (XML Schema Definition) for structure validation, and XML schemas that define document structure. These formats provide type safety and validation for service messages, ensuring proper data exchange between systems.
-
stylesheet>mystyle.css</stylesheet />
-
<link rel="stylesheet" type="text/css" href="mystyle.css">
-
<link rel="stylesheet" type="text/css" src="mystyle.css">
-
<style src="mystyle.css" />
B
Correct answer
Explanation
External style sheets are linked using the element with attributes `rel="stylesheet"`, `type="text/css"`, and `href`. Using `src` instead of `href` is incorrect for links, and tags with src or custom <stylesheet> tags are invalid HTML.