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

Multiple choice technology architecture
  1. JQuery.

  2. DOJO.

  3. Both a and b.

  4. None of the above.

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology architecture
  1. JavaScript

  2. XML

  3. MQ

  4. Java

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology architecture
  1. Append the contents of the Text file.

  2. Append the contents of the XML File.

  3. Data will be processed asynchronously.

  4. Data will be process Synchronously.

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. it is a main document

  2. it is linked to a main document of type Document

  3. it adds a third level to the document hierarchy

  4. All the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. it is a main document

  2. it is linked to a main document of type Document

  3. it adds a third level to the document hierarchy

  4. All the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. XHTML

  2. CSS 2.1

  3. CSS MP

  4. HTML 4.0

  5. None of above

Reveal answer Fill a bubble to check yourself
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'.

Multiple choice technology web technology
  1. HTML 3.2

  2. HTML 4.0

  3. WML

  4. All of above

  5. None of above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. eXtended HTML – MobiReady Profile

  2. eXtended HTML – Mobile Phone

  3. eXtended HTML – Mobile Profile

  4. None of above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. The code is perfectly valid. It sets the specified value in the web

  2. ) name property is incorrectly defined for the link object

  3. Syntax of Description object is incorrect

  4. Defined link object is incorrectly used as an edit box object. Hence issuing a Set method is invalid

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. collection having child nodes/elements

  2. a node/child

  3. true if there are children and false if no children

  4. root node

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. 222

  2. A

  3. No value. It returns an empty string

  4. Aarthi

Reveal answer Fill a bubble to check yourself
D Correct answer