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 general knowledge science & technology
  1. HTML

  2. XHTML

  3. VML

  4. SGML

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

XML is a simplified and restricted form of SGML (Standard Generalized Markup Language). It inherits SGML's structural features while removing complexity. HTML and XHTML are applications of SGML/XML, not the other way around.

Multiple choice technology programming languages
  1. response.write("Hello World")

  2. document.write("Hello World")

  3. ("Hello World")

  4. "Hello World"

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

To write "Hello World" in JavaScript, the correct syntax is:

B. document.write("Hello World")

Explanation:

A. response.write("Hello World"): This is not the correct syntax. The "response" object does not have a "write" method in JavaScript.

B. document.write("Hello World"): This is the correct syntax. The "document" object represents the current web page, and the "write" method is used to write content directly to the web page. In this case, it will write "Hello World" to the page.

C. ("Hello World"): This is not the correct syntax. Parentheses alone do not have any specific meaning in JavaScript.

D. "Hello World": This is a string literal and is valid syntax in JavaScript. However, it does not actually write "Hello World" to the web page. It is just a static string value that can be assigned to a variable or used in other operations.

Therefore, the correct answer is B. document.write("Hello World").

Multiple choice technology web technology
  1. It is a communication protocol

  2. It is a format for sending messages

  3. It is based on XML

  4. It does not allow you to get around firewalls

  5. None of these

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

SOAP (Simple Object Access Protocol) is designed to be platform-independent and typically runs over HTTP. One of its primary advantages is that because it uses standard HTTP ports (like 80 and 443), it can easily pass through firewalls that allow web traffic.

Multiple choice technology web technology
  1. named pipe

  2. fully-qualified domain name

  3. Multiprotocol Label Switching

  4. namespace

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

To solve this question, the user needs to understand the concept of XML elements and attributes, as well as the purpose of ensuring unique identities for these elements and attributes.

Explanation of each option:

A. named pipe: A named pipe is a method of inter-process communication in which two or more processes can communicate with each other by writing and reading from a pipe. This option is unrelated to the concept of unique identities for XML elements and attributes.

B. fully-qualified domain name: A fully-qualified domain name (FQDN) is a domain name that specifies the exact location of a resource on the internet. This option is unrelated to the concept of unique identities for XML elements and attributes.

C. Multiprotocol Label Switching: Multiprotocol Label Switching (MPLS) is a routing technique that directs data packets along predefined paths within a network. This option is unrelated to the concept of unique identities for XML elements and attributes.

D. namespace: A namespace in XML is a mechanism that allows elements and attributes to have unique identities. It ensures that element and attribute names are globally unique, preventing naming conflicts. This is the correct option for ensuring unique identities of XML elements and attributes.

Therefore, the correct answer is:

D. namespace

Multiple choice technology web technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

XSL (Extensible Stylesheet Language) is indeed a styling language used to transform and render XML documents into other formats like HTML or PDF. It acts as the CSS equivalent for XML data.

Multiple choice technology web technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

XSL is not a programming language - it is a declarative markup language for defining transformations and stylesheets for XML documents. XSL consists of XSLT (a transformation language), XPath (a navigation language for accessing parts of XML documents), and XSL-FO (a formatting language for print/presentation). Unlike programming languages, XSL does not have imperative control flow, variables in the traditional sense, or the ability to perform arbitrary computations.

Multiple choice technology web technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

XSL stylesheets use templates to define how XML elements should be transformed. Each template rule has a match pattern (using XPath) that specifies which nodes in the source XML document it applies to, and the content of the template defines the output. When an XSLT processor transforms an XML document, it applies the template rules to the source nodes, generating the output document according to the template instructions.

Multiple choice technology web technology
  1. Hyper Text Markup Language

  2. Hyper Text My Language

  3. Higher Text Markup Language

  4. Hyper Text Multiple Language

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

HTML stands for Hyper Text Markup Language. It is the standard markup language for creating web pages and describing the structure of web content.

Multiple choice technology web technology
  1. Hyper Text Markup Language

  2. Higher Text Markup Language

  3. Hyper Text My Language

  4. Hyper Text Makeup Language

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

HTML stands for Hyper Text Markup Language. This question is identical to the previous one - both test the same fundamental knowledge about what HTML means.