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
B
Correct answer
Explanation
The TITLE tag defines the page title displayed in browser title bars and tabs. It is required in HTML documents and goes in the HEAD section. The title text also appears in search engine results and browser history. Names like page and name are not valid HTML elements.
D
Correct answer
Explanation
The center tag is an HTML element used to horizontally center its content on the page. While modern web development uses CSS (text-align: center or flexbox) for this purpose, historically the tag was the standard way to align content to the middle. The other options (t mid, middle, mid) are not valid HTML tags for this purpose.
B
Correct answer
Explanation
The alt attribute in an img tag provides alternative text that displays when an image cannot be loaded. While the question asks about hover behavior in Internet Explorer specifically, the alt attribute was historically the closest mechanism for providing descriptive text about graphics (though the title attribute is the correct one for tooltips). The ctrl, hover, and over options are not standard HTML attributes.
-
XSLT
-
Xquery
-
Any of the above
-
None of the above
B
Correct answer
Explanation
XQuery is generally more efficient than XSLT for large XML transformations in OSB - it's optimized for XML processing, has better performance, and is OSB's preferred transformation language for large payloads.
-
X-Query
-
XSLT
-
both A and B
-
MFL Transform
D
Correct answer
Explanation
MFL (Message Format Language) Transform is used for converting between XML and non-XML formats like EDI, flat files, or COBOL copybooks in OSB. XQuery and XSLT work only with XML-to-XML transformations.
-
XML Schema
-
WSDL
-
both A and B
-
None of the above
C
Correct answer
Explanation
OSB supports message validation against both XML Schema (XSD) definitions and WSDL specifications. XML Schema validates the structure and data types of XML messages, while WSDL includes schema definitions for web service operations. OSB's Validate action can use either validation mechanism, making C the correct comprehensive answer. Options A and B are each partially correct but incomplete.
-
X-Query
-
XSLT
-
both A and B
-
MFL Transform
B
Correct answer
Explanation
XSLT (Extensible Stylesheet Language Transformations) is the standard technology for transforming XML to non-XML formats (like JSON, CSV, plain text) and vice versa in OSB. X-Query is not a standard transformation technology, and MFL is for fixed-length flat file formats, not general XML conversion.
-
X-Query
-
XSLT
-
both A and B
-
MFL Transform
D
Correct answer
Explanation
MFL (Message Format Language) Transform is Oracle Service Bus's specialized transformation facility for converting between XML and non-XML formats like flat files, EDI, COBOL copybook data. XSLT is for XML-to-XML transformations. XQuery is for querying XML documents, not format conversion.
-
XSLT
-
Xquery
-
Any of the above
-
None of the above
B
Correct answer
Explanation
For large XML payloads, XQuery is typically more efficient and performs better than XSLT in OSB due to how XML nodes are processed and streamed, reducing memory footprint and overall execution time during message transformation.
-
XML Schema
-
WSDL
-
both A and B
-
None of the above
C
Correct answer
Explanation
OSB provides validation capabilities against both XML Schema definitions (XSD) and WSDL documents. XML Schema validation ensures the message structure conforms to a schema definition. WSDL validation includes both schema validation and additional WSDL-specific constraints including service contract definitions. OSB can validate request and response messages using either validation type. The Validate action in OSB can be configured to use either an XSD resource or a WSDL resource for validation.
-
X-Query
-
XSLT
-
both A and B
-
MFL Transform
D
Correct answer
Explanation
MFL (Message Format Language) Transform in OSB is specifically designed for converting between XML and non-XML formats like binary files, COBOL copybooks, and fixed-length or delimited formats. XSLT and XQuery are transformation languages that only work with XML-to-XML conversions - they cannot handle non-XML formats. Therefore, MFL Transform is the correct resource for bidirectional XML to non-XML transformation.
-
XML Schema
-
WSDL
-
both A and B
-
None of the above
C
Correct answer
Explanation
Messages can be validated against both XML Schema (which defines the structure, data types, and constraints of XML messages) and WSDL (which contains schema definitions for web service operations). XML Schema provides structural validation while WSDL validates against the service contract. Both are valid validation mechanisms in SOA environments.
-
XSLT
-
Xquery
-
Any of the above
-
None of the above
B
Correct answer
Explanation
For large payload transformations in OSB, XQuery is generally preferred over XSLT due to better performance and memory efficiency. XSLT works well for smaller documents but can be resource-intensive for large payloads. XQuery is optimized for XML processing at scale.
B
Correct answer
Explanation
HTML is a markup language, not a programming language. Markup languages describe the structure and presentation of content (using tags like , ,
), while programming languages contain logic, algorithms, and computational instructions. HTML lacks programming constructs like loops, conditionals, and variables.
-
BODY & TAIL
-
HEAD & TAIL
-
HEAD & BODY
-
FIRST & BODY
C
Correct answer
Explanation
An HTML document is structured into two main sections: the HEAD section (contains meta-information, title, links to stylesheets/scripts) and the BODY section (contains the actual visible content displayed on the webpage). This is standard HTML document structure.