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
-
<css>
-
<script>
-
<style>
-
<styles>
C
Correct answer
Explanation
The tag is used to define an internal style sheet within an HTML document. It is placed in the <head> section and contains CSS rules between opening and closing tags. Option A (<css>) doesn't exist. Option B (<script>) is for JavaScript. Option D (<styles>) is incorrect.
B
Correct answer
Explanation
The style attribute is used to define inline CSS styles directly on HTML elements. For example:
. Option A (class) is for class names, not inline styles. Option C (styles) is not a valid attribute. Option D (font) is not the correct attribute for general styling.
-
body {color: black}
-
{body:color=black(body}
-
{body;color:black}
-
body:color=black
A
Correct answer
Explanation
CSS syntax uses a selector followed by curly braces containing property:value pairs. The correct format is: selector { property: value; }. Option A (body {color: black}) correctly shows this syntax. Options B and C have incorrect bracket placement. Option D uses an equals sign instead of curly braces and colons, which is JavaScript object syntax, not CSS.
B
Correct answer
Explanation
Web components are a specific set of web platform APIs (Custom Elements, Shadow DOM, HTML Templates) that create reusable custom elements. An HTML page is a complete document served by a web server, not a reusable component.
A
Correct answer
Explanation
WSDL (Web Services Description Language) is an XML format for describing network services as a set of endpoints operating on messages. It documents the service location, operations, and message formats needed to interact with the web service.
-
XML
-
HTTP
-
FTP
-
All the above
A,B
Correct answer
Explanation
The basic web service platform uses XML for encoding/decoding data (A) and HTTP as the transport protocol (B). FTP is not a standard web service transport protocol, so 'All the above' is incorrect.
-
HTML & HTTP
-
XML & HTTP
-
XML & SOAP
-
HTML & SOAP
C
Correct answer
Explanation
Web services use XML to code and decode data, and SOAP (which uses HTTP) to transport that data. SOAP is the XML-based protocol that handles the message format and communication, while HTTP provides the underlying transport layer.
A
Correct answer
Explanation
ALT text should always be provided for images. If an image is purely decorative (adds no content), use alt="" (empty/null ALT) so screen readers skip it. This is better than omitting ALT entirely, which causes screen readers to read the filename.
-
NQconfig.xml
-
NQconfiq.html
-
Instanceconfig.htm
-
None of the Above
D
Correct answer
Explanation
The configuration and initialization file for Siebel Analytics Web (Presentation Services) is instanceconfig.xml. Since instanceconfig.xml is not listed among the options, 'None of the Above' is the correct choice.
-
EncType: application/x-www-urlencoded
-
Content-Type: application/x-www-form-urlencoded
-
Content-Type: multipart/form-data
-
Encoding-Type: multipart/form-data
-
Accept-Encoding: application/www-form-encoded
-
Encoding-Type: multipart/www-form-data Request
B
Correct answer
Explanation
The 'Content-Type: application/x-www-form-urlencoded' header tells the server how to decode the parameter data from an HTML form submission. This is the standard encoding for form data where key-value pairs are URL-encoded (special characters converted to %XX format). The servlet container uses this header to properly parse the request body and populate the HttpServletRequest's parameter methods. Note the header name is 'Content-Type', not 'EncType' or 'Encoding-Type'.
-
all
-
persist
-
delete
-
All the above
D
Correct answer
Explanation
Hibernate cascade attribute supports several values: 'all' (cascade all operations), 'persist', 'delete', 'save-update', 'merge', 'evict', 'replicate', 'refresh', and 'lock'. The options A, B, C are all valid cascade values.
-
One to one
-
One to many
-
Many to one
-
None of the above
B
Correct answer
Explanation
The tag in Hibernate mapping files is specifically used for one-to-many associations when you need to represent a collection that maintains key-value pairs and preserves insertion order. Other association types use different tags like or .
-
System.Data.Xml
-
System.Xml
-
System.DOM.Xml
-
System.DOM
B
Correct answer
Explanation
System.Xml is the namespace in .NET that provides XML DOM (Document Object Model) support. It contains classes like XmlDocument, XmlNode, XmlElement for parsing and manipulating XML documents. There is no System.DOM namespace in .NET, and System.Data.Xml is not the primary XML namespace.
-
System.Data.Xml
-
System.XML
-
System.DOM.Xml
-
System.DOM
B
Correct answer
Explanation
System.Xml (same as System.XML - case difference) is the .NET namespace for XML DOM support. This question is a duplicate of 135084 testing the same concept - that XML functionality lives in the System.Xml namespace which provides XmlDocument and related DOM classes.
-
@Responses
-
@AllChildren
-
@AllDescendents
-
@AllResponses
C
Correct answer
Explanation
@AllDescendants is the Lotus Notes formula function that retrieves all response documents AND all response-to-response documents (the entire hierarchy below a parent). @Responses only gets direct responses, while @AllChildren is not a standard function.