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
-
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.
-
Associate different business logic for mobile devices
-
Associate different master page for mobile devices
-
Associate different style sheet for different screensizes of mobile devices
-
Find out the multimedia and image formats supported by a given mobile device
C
Correct answer
Explanation
CSS3 Media Queries allow applying different styles based on device characteristics like screen size, orientation, and resolution. They are the core of responsive web design. Media queries do NOT handle business logic (A), master pages (B), or device capability detection (D) - those are server-side or JavaScript concerns.
-
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.
-
lightweight
-
exchange structured information
-
text based protocol
-
used in WebServices
B
Correct answer
Explanation
AJAX is a web development technique that uses JavaScript to make asynchronous requests to a server. The 'J' stands for JavaScript, not Java - they are completely different technologies.
B
Correct answer
Explanation
DTD stands for Document Type Definition, not Document Type Design. A DTD defines the structure, legal elements, and attributes of an XML document, acting as a blueprint that validates whether an XML file follows the correct format.
B
Correct answer
Explanation
JSON stands for JavaScript Object Notation, not JavaScript Object Name. It's a lightweight, text-based data interchange format inspired by JavaScript object syntax but now language-independent, widely used for APIs and configuration files.
A
Correct answer
Explanation
RDF (Resource Description Framework) is a standard model for data interchange on the Web, representing information as subject-predicate-object triples. It's foundational to the Semantic Web, enabling machines to understand and process data relationships.