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
-
JQuery.
-
DOJO.
-
Both a and b.
-
None of the above.
C
Correct answer
Explanation
jQuery and Dojo (DOJO) are both popular JavaScript libraries used for AJAX development. jQuery provides the ajax() method and shortcuts like get()/post(), while Dojo Toolkit includes XMLHttpRequest wrappers and AJAX utilities. Both are widely used, making Option C correct.
B
Correct answer
Explanation
While AJAX originally used XML for data exchange (hence the name Asynchronous JavaScript and XML), modern AJAX applications commonly use JSON, plain text, or other formats. However, among the given options, XML is the most historically accurate answer representing what the 'X' in AJAX stands for. MQ is a messaging protocol, and Java is a programming language.
-
Append the contents of the Text file.
-
Append the contents of the XML File.
-
Data will be processed asynchronously.
-
Data will be process Synchronously.
C
Correct answer
Explanation
The third parameter in xmlhttp.open() is a boolean that determines whether the request is asynchronous (true) or synchronous (false). When true, the request executes asynchronously and doesn't block the browser. When false, it runs synchronously and freezes the UI until complete. Asynchronous (true) is the recommended approach.
-
it is a main document
-
it is linked to a main document of type Document
-
it adds a third level to the document hierarchy
-
All the above
B
Correct answer
Explanation
A Response form type creates a document that is linked to a main Document. This establishes a hierarchical relationship where the response document depends on and references a primary document. Response documents do not exist as standalone main documents - they are always child documents in the document hierarchy.
-
it is a main document
-
it is linked to a main document of type Document
-
it adds a third level to the document hierarchy
-
All the above
C
Correct answer
Explanation
A Response to Response form extends the document hierarchy to a third level. While a Response is linked to a main Document (second level), a Response to Response is linked to another Response document, creating three levels: Document → Response → Response to Response. This creates nested response relationships.
-
XHTML Basic
-
XHTML MP
-
CSS MP
-
Both a & b above
-
None of above
B
Correct answer
Explanation
XHTML Mobile Profile (XHTML MP) was defined by the WAP Forum (later OMA), whereas XHTML Basic and CSS Mobile Profile (CSS MP) were developed directly under the W3C standards body.
-
XHTML
-
CSS 2.1
-
CSS MP
-
HTML 4.0
-
None of above
C
Correct answer
Explanation
XHTML, CSS 2.1, and HTML 4.0 are all established W3C standards. CSS MP is not a standard W3C specification - it appears to be a fictional or non-standard option in this list. W3C has developed various CSS modules (CSS3, etc.) but 'CSS MP' is not one of them, making it the correct answer for 'not a W3C Standard'.
-
HTML 3.2
-
HTML 4.0
-
WML
-
All of above
-
None of above
C
Correct answer
Explanation
WAP (Wireless Application Protocol) 1.x used WML (Wireless Markup Language) as its markup language. With WAP 2.0, the specification moved away from WML and adopted XHTML-MP (XHTML Mobile Profile), which brought mobile web closer to standard web technologies. Therefore, WML was deprecated in favor of XHTML-MP.
-
eXtended HTML – MobiReady Profile
-
eXtended HTML – Mobile Phone
-
eXtended HTML – Mobile Profile
-
None of above
C
Correct answer
Explanation
XHTML-MP stands for XHTML Mobile Profile. It is a subset of XHTML designed specifically for mobile devices, omitting features that are resource-intensive or unnecessary on mobile platforms. The 'MP' suffix specifically denotes 'Mobile Profile', which is the correct expansion.
-
The code is perfectly valid. It sets the specified value in the web
-
) name property is incorrectly defined for the link object
-
Syntax of Description object is incorrect
-
Defined link object is incorrectly used as an edit box object. Hence issuing a Set method is invalid
D
Correct answer
Explanation
The code creates a Description object for a Link (micclass=Link, name=username) but then tries to use it with WebEdit(). WebEdit expects an edit box description, not a link description. The Set method is valid for WebEdit but cannot be applied to a Link object. Option A is incorrect because there's a type mismatch. Option B is incorrect because 'name' is a valid property. Option C is incorrect because the Description.Create syntax is valid.
-
RootElement
-
GetRootItem
-
GetRootNode
-
GetRootElement
D
Correct answer
Explanation
GetRootElement is the standard method to retrieve the root element from an XML document object. This method returns the top-level element from which all other elements in the XML hierarchy descend.
-
collection having child nodes/elements
-
a node/child
-
true if there are children and false if no children
-
root node
A
Correct answer
Explanation
In UFT/QTP XMLUtil, the ChildElements method returns an XMLCollection containing all the child elements/nodes of the specified element. It does not return a single node, boolean status, or the root node.
-
222
-
A
-
No value. It returns an empty string
-
Aarthi
-
lightweight
-
exchange structured information
-
text based protocol
-
used in WebServices